Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 6 years ago

Language

C++

Compiler

clang 7.0.0

Options
Warnings
Boost 1.69.0
C++11
no pedantic

Author

anonymous

almost 6 years ago

block.hpp

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/clang-7.0.0/include -std=c++11
prog.cc:10:17: error: out-of-line definition of 'parse' does not match any declaration in 'Block<std::__1::basic_string<char>, 1>'
bool BlockStr1::parse(int32_t index, const std::string& value)
                ^~~~~
prog.cc:16:17: error: out-of-line definition of 'parse' does not match any declaration in 'Block<std::__1::basic_string<char>, 2>'
bool BlockStr2::parse(int32_t index, const std::string& value)
                ^~~~~
prog.cc:22:15: error: out-of-line definition of 'parse' does not match any declaration in 'Block<unsigned short, 16>'
bool Block16::parse(int32_t index, uint16_t value)
              ^~~~~
prog.cc:30:4: error: use of undeclared identifier 'BlockStr'
   BlockStr::parse(0, "str1");
   ^
prog.cc:31:4: error: use of undeclared identifier 'BlockStr'
   BlockStr::parse(55, "str2");
   ^
5 errors generated.
Exit Code:
1