Bump GCC requirements to 4.8. Close #1442

This commit is contained in:
Alexey Sokolov committed 2017-12-17 15:09:52 +00:00
1 parent 31db835ec8
commit 79ec016f05
4 files changed
+14 -3

No files matched your search

+1 -1
View File
@@ -34,6 +34,6 @@ if(NOT DEFINED cxx11check)
"Error in C++11 check:\n${_CXX11Check_tryout}\n")
message(STATUS "Checking for C++11 support - not supported")
message(FATAL_ERROR " Upgrade your compiler.\n"
" GCC 4.7+ and Clang 3.2+ are known to work.")
" GCC 4.8+ and Clang 3.2+ are known to work.")
endif()
endif()
+6 -1
View File
@@ -10,6 +10,7 @@
// and this notice are preserved. This file is offered as-is, without any
// warranty.
#include <map>
template <typename T>
struct check {
@@ -55,4 +56,8 @@ void test();
void test() { func<foo>(0); }
}
int main() { return 0; }
int main() {
std::map<int, int> m;
m.emplace(2, 4);
return 0;
}