Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C:\Users\Danny\Documents\Visual Studio 2012\Projects\CppStrayFiles\test2.cpp:23:44: error: ISO C++ forbids declaration of 'my_lexical_cast' with no type [-fpermissive]
- C:\Users\Danny\Documents\Visual Studio 2012\Projects\CppStrayFiles\test2.cpp:23:44: error: template-id 'my_lexical_cast<std::string>' in declaration of primary template
- C:\Users\Danny\Documents\Visual Studio 2012\Projects\CppStrayFiles\test2.cpp: In function 'int my_lexical_cast(const sType&)':
- C:\Users\Danny\Documents\Visual Studio 2012\Projects\CppStrayFiles\test2.cpp:27:12: error: 'o' was not declared in this scope
- C:\Users\Danny\Documents\Visual Studio 2012\Projects\CppStrayFiles\test2.cpp: In function 'int main()':
- C:\Users\Danny\Documents\Visual Studio 2012\Projects\CppStrayFiles\test2.cpp:32:35: error: call of overloaded 'my_lexical_cast(std::string&)' is ambiguous
- C:\Users\Danny\Documents\Visual Studio 2012\Projects\CppStrayFiles\test2.cpp:32:35: note: candidates are:
- C:\Users\Danny\Documents\Visual Studio 2012\Projects\CppStrayFiles\test2.cpp:14:7: note: rType my_lexical_cast(const sType&) [with rType = int; sType = std::basic_string<char>]
- C:\Users\Danny\Documents\Visual Studio 2012\Projects\CppStrayFiles\test2.cpp:23:1: note: int my_lexical_cast(const sType&) [with rType = int; sType = std::basic_string<char>]
- [Finished in 0.5s]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement