Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc:8:20: error: inline declaration of 'typeToString<float>' follows non-inline definition
inline std::string typeToString<float>()
^
prog.cc:8:20: note: previous definition is here
prog.cc:15:18: error: call to deleted function 'typeToString'
std::cout << typeToString<float>() << std::endl;
^~~~~~~~~~~~~~~~~~~
prog.cc:8:20: note: candidate function [with T = float] has been explicitly deleted
inline std::string typeToString<float>()
^
2 errors generated.
Exit Code:
1