Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

gcc 8.2.0

Options
Warnings
Boost 1.68.0
C++17(GNU)
no pedantic

Author

anonymous

about 6 years ago

function_traits.h

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-8.2.0/include -std=gnu++17
In file included from prog.cc:7:
function_traits.h: In instantiation of 'struct function_traits<main()::<lambda(const TestEvent&)> >':
prog.cc:30:37:   required from 'void EventDispatcher::Register(F&&) [with F = main()::<lambda(const TestEvent&)>]'
prog.cc:71:10:   required from here
function_traits.h:47:45: error: no type named 'type' in 'struct main()::<lambda(const class TestEvent&)>'
  using call_type = function_traits<decltype(&F::type::operator())>;
                                             ^~
function_traits.h:47:45: error: no type named 'type' in 'struct main()::<lambda(const class TestEvent&)>'
function_traits.h: In instantiation of 'struct function_traits<main()::<lambda(const TestEvent&)> >::argument<0>':
prog.cc:31:66:   required from 'void EventDispatcher::Register(F&&) [with F = main()::<lambda(const TestEvent&)>]'
prog.cc:71:10:   required from here
function_traits.h:47:45: error: no type named 'type' in 'struct main()::<lambda(const class TestEvent&)>'
Exit Code:
1