Created
September 24, 2013 19:16
-
-
Save keisukefukuda/6689841 to your computer and use it in GitHub Desktop.
Compiler compatibility test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <map> | |
#include <string> | |
using namespace std; | |
// This is OK. | |
void func(map<string,string> a=map<string,string>()) { | |
return; | |
} | |
// This is bad. | |
class Foo { | |
void bar(map<string,string> a=map<string,string>()) { | |
return; | |
} | |
}; | |
int main(int argc, char **argv) { | |
Foo foo; | |
return 0; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works with Linux g++
$ g++ --version
g++ (GCC) 4.4.5 20110214 (Red Hat 4.4.5-6)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.