fork(1) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. class Test
  7. {
  8. public:
  9.  
  10. Test(const string& str1, bool flag=false)
  11. {
  12. cout << "Test::Test(string,bool)" << endl;
  13. }
  14.  
  15. Test(const string& str1, const string& str2, bool flag=false)
  16. {
  17. cout << "Test::Test(string,string,bool)" << endl;
  18. }
  19. };
  20.  
  21. int main()
  22. {
  23. using namespace literals;
  24.  
  25. Test* test = new Test("foo", "bar");
  26. }
Compilation error #stdin compilation error #stdout 0s 3456KB
stdin
Standard input is empty
compilation info
prog.cpp:23:17: error: expected namespace name
using namespace literals;
                ^
1 error generated.
stdout
Standard output is empty