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:12:13: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     typedef const bool (* const BooleanResultDelegate)(const T&);
             ^~~~~
prog.cc:110:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const size_t length() const {
     ^~~~~
prog.cc:113:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     const unsigned getID() const {
     ^~~~~
prog.cc: In constructor 'Array<n, T>::Array(T*)':
prog.cc:72:13: error: 'reportIfDebug' was not declared in this scope
             reportIfDebug<n, T>(*this, "created");
             ^~~~~~~~~~~~~
prog.cc:72:31: error: expected primary-expression before '>' token
             reportIfDebug<n, T>(*this, "created");
                               ^
prog.cc: In constructor 'Array<n, T>::Array(const T&)':
prog.cc:80:13: error: 'reportIfDebug' was not declared in this scope
             reportIfDebug<n, T>(*this, "created");
             ^~~~~~~~~~~~~
prog.cc:80:31: error: expected primary-expression before '>' token
             reportIfDebug<n, T>(*this, "created");
                               ^
prog.cc: In copy constructor 'Array<n, T>::Array(const Array<n, T>&)':
prog.cc:88:13: error: 'reportIfDebug' was not declared in this scope
             reportIfDebug<n, T>(*this, "created");
             ^~~~~~~~~~~~~
prog.cc:88:31: error: expected primary-expression before '>' token
             reportIfDebug<n, T>(*this, "created");
                               ^
prog.cc: In destructor 'Array<n, T>::~Array()':
prog.cc:94:9: error: 'reportIfDebug' was not declared in this scope
         reportIfDebug<n, T>(*this, "deleted", false);
         ^~~~~~~~~~~~~
prog.cc:94:27: error: expected primary-expression before '>' token
         reportIfDebug<n, T>(*this, "deleted", false);
                           ^
prog.cc: In instantiation of 'Array<n, T>::Array(T*) [with long unsigned int n = 15; T = int]':
prog.cc:162:19:   required from here
prog.cc:36:18: warning: 'Array<15, int>::_n' will be initialized after [-Wreorder]
     const size_t _n;
                  ^~
prog.cc:35:9: warning:   'int** Array<15, int>::_array' [-Wreorder]
     T** _array;
         ^~~~~~
prog.cc:61:14: warning:   when initialized here [-Wreorder]
     explicit Array<n, T>(T* arrayFiller = 0)
              ^~~~~~~~~~~
prog.cc:35:9: warning: 'Array<15, int>::_array' will be initialized after [-Wreorder]
     T** _array;
         ^~~~~~
prog.cc:33:14: warning:   'unsigned int Array<15, int>::_id' [-Wreorder]
     unsigned _id;
              ^~~
prog.cc:61:14: warning:   when initialized here [-Wreorder]
     explicit Array<n, T>(T* arrayFiller = 0)
              ^~~~~~~~~~~
prog.cc:72:38: warning: value computed is not used [-Wunused-value]
             reportIfDebug<n, T>(*this, "created");
                                ~~~~~~^~~~~~~~~~~~
prog.cc:72:38: warning: left operand of comma operator has no effect [-Wunused-value]
prog.cc: In instantiation of 'Array<n, T>::~Array() [with long unsigned int n = 15; T = int]':
prog.cc:162:19:   required from here
prog.cc:94:34: warning: value computed is not used [-Wunused-value]
         reportIfDebug<n, T>(*this, "deleted", false);
                             ~~~~~^~~~~~~~~~~
prog.cc:94:34: warning: left operand of comma operator has no effect [-Wunused-value]
prog.cc:94:45: warning: right operand of comma operator has no effect [-Wunused-value]
         reportIfDebug<n, T>(*this, "deleted", false);
                            ~~~~~~~~~~~~~~~~~^~~~~~~~
Exit Code:
1