Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

Compiler

Options

Author

anonymous

over 7 years ago

$
prog.cc: In instantiation of 'SimpleVector<T>::SimpleVector(int) [with T = int]':
prog.cc:162:34:   required from here
prog.cc:62:2: warning: catching polymorphic type 'class std::bad_alloc' by value [-Wcatch-value=]
  catch (std::bad_alloc)
  ^~~~~
prog.cc: In function 'int main()':
prog.cc:165:16: warning: 'simpleArr.SimpleVector<int>::aptr' may be used uninitialized in this function [-Wmaybe-uninitialized]
   simpleArr[x] = (x * 2);
This is the current content of the char array:
Number # 1: one
Number # 2: two
Number # 3: freddy's
Number # 4: coming
Number # 5: for
Number # 6: you ...
Meantime in your specialized template ...
one
two
freddy's
coming
for
you ...
0
2
4
6
8
10
Exit Code:
0