Advertisement
Rapptz

lol

Nov 27th, 2012
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.30 KB | None | 0 0
  1. 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]
  2. 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
  3. C:\Users\Danny\Documents\Visual Studio 2012\Projects\CppStrayFiles\test2.cpp: In function 'int my_lexical_cast(const sType&)':
  4. C:\Users\Danny\Documents\Visual Studio 2012\Projects\CppStrayFiles\test2.cpp:27:12: error: 'o' was not declared in this scope
  5. C:\Users\Danny\Documents\Visual Studio 2012\Projects\CppStrayFiles\test2.cpp: In function 'int main()':
  6. C:\Users\Danny\Documents\Visual Studio 2012\Projects\CppStrayFiles\test2.cpp:32:35: error: call of overloaded 'my_lexical_cast(std::string&)' is ambiguous
  7. C:\Users\Danny\Documents\Visual Studio 2012\Projects\CppStrayFiles\test2.cpp:32:35: note: candidates are:
  8. 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>]
  9. 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>]
  10. [Finished in 0.5s]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement