Opened 13 years ago
Closed 12 years ago
#4108 closed Bugs (fixed)
C2139 error in VS2010
Reported by: | Owned by: | Peter Dimov | |
---|---|---|---|
Milestone: | Boost 1.43.0 | Component: | smart_ptr |
Version: | Boost 1.42.0 | Severity: | Problem |
Keywords: | C2139 2139 VS2010 | Cc: |
Description
VC2008 can compile this code, but VS2010 can't. Error log attached.
#include <boost/variant.hpp> #include <boost/shared_ptr.hpp> struct NonTerminal; struct Terminal; typedef boost::variant < boost::recursive_wrapper<NonTerminal>, Terminal > AST; struct NonTerminal { public: NonTerminal(boost::shared_ptr<AST> a): m(a) { } boost::shared_ptr<AST> m; }; struct Terminal { }; void main() { }
Attachments (1)
Change History (4)
by , 13 years ago
Attachment: | errors.txt added |
---|
comment:1 by , 13 years ago
Component: | None → smart_ptr |
---|---|
Owner: | set to |
This is caused by some unintended ADL in shared_ptr.
comment:3 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Error log from compiler