http://llvm.org/bugs/show_bug.cgi?id=9351
Summary: Cannot have recursive multimap
Product: libc++
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
This problem effects all the tree-based data structures, but I hit it withe
boost::date-time and multimap.
The following is not valid in libc++:
struct X
{ std::multimap<int, X> m; };
I do not believe the standard technically requires it to work, but it is nice
if it does.
I believe the only thing stopping it from working is the fact that
instantiating typedefs in classes also forces instantiating their members.
However, I had a quick look and I don't think there is a quick fix to this --
unless there is something clever, it's probably going to involve separating all
(or at least many) of the typedefs out into a separate hierarchy, just to avoid
instantiating tree_node, and therefore value_type.
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs