http://llvm.org/bugs/show_bug.cgi?id=20484
Bug ID: 20484
Summary: type_traits cannot be used with gcc for -std=c++ < 11
Product: libc++
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Including the type_traits header from g++ currently fails if not using c++11:
error: default template arguments may not be used in function templates
without -std=c++11 or -std=gnu++11
This is a C++11 header, so it should be a non-issue, but type_traits gets
included in many other headers, including things as simple as cmath.
The patch that introduced the default template argument in question was r123163
(https://github.com/llvm-mirror/libcxx/commit/2b44e3dd49136179c49a81f34f14ce31005c6792).
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs