Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

Compiler

Options

Author

anonymous

over 7 years ago

$
In file included from prog.cc:2:0:
/opt/wandbox/gcc-7.1.0/include/c++/7.1.0/chrono: In instantiation of 'constexpr std::chrono::duration<_Rep, _Period>::duration(const _Rep2&) [with _Rep2 = main()::Convert; <template-parameter-2-2> = void; _Rep = long int; _Period = std::ratio<1, 1000>]':
prog.cc:23:40:   required from here
/opt/wandbox/gcc-7.1.0/include/c++/7.1.0/chrono:326:10: error: invalid static_cast from type 'const main()::Convert' to type 'std::chrono::duration<long int, std::ratio<1, 1000> >::rep {aka long int}'
    : __r(static_cast<rep>(__rep)) { }
          ^~~~~~~~~~~~~~~~~~~~~~~
Exit Code:
1