[LLVMbugs] [Bug 10574] New: initializer_list should be disabled when generalized initializers are not available
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Aug 2 20:08:05 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10574
Summary: initializer_list should be disabled when generalized
initializers are not available
Product: libc++
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: hhinnant at apple.com
ReportedBy: scshunt at csclub.uwaterloo.ca
CC: llvmbugs at cs.uiuc.edu
The initializer_list class should be disabled when generalized initializer
lists are not available as a language feature. The only way to construct them
in a conformant manner is via the language, and code written in C++03 to work
around the lack of generalized initializer lists may fail due to their
presence. The same code will fail in C++0x, but C++0x provides language
features (in particular, default template arguments on functions which allow
SFINAE in conversion operators) that allow the code to be limited to
containers.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list