Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 7 years ago

Language

C++

Compiler

gcc HEAD 9.0.0 20180716 (experimental)

Options
Warnings
Don't Use Boost
C++17
no pedantic

Author

anonymous

about 7 years ago

smallfun.hpp
smallfun_changed.hpp

$ g++ prog.cc -Wall -Wextra -std=c++17
prog.cc: In function 'int main()':
prog.cc:33:14: warning: implicitly-declared 'constexpr smallfun::SmallFun<int()>& smallfun::SmallFun<int()>::operator=(const smallfun::SmallFun<int()>&)' is deprecated [-Wdeprecated-copy]
         f = &func;
              ^~~~
In file included from prog.cc:4:
smallfun.hpp:86:3: note: because 'smallfun::SmallFun<int()>' has user-provided 'smallfun::SmallFun<ReturnType(Xs ...), size>::~SmallFun() [with ReturnType = int; Xs = {}; unsigned int size = 128]'
   ~SmallFun() {
   ^
ctor
copy ctor
12
123
dtor
Exit Code:
0