Opened 7 years ago
#11260 new Bugs
stored_edge_property's copy constructor is implicitly deleted for some compilers
Reported by: | Owned by: | Jeremiah Willcock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | graph |
Version: | Boost 1.56.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Stored_edge_property has two possible definitions, depending upon the compiler used. With MSVC or gcc less than 4.6, it is given both a copy constructor and a move constructor. With other compilers, it is given a default move constructor, and its copy constructor is implicitly deleted.
This causes compiler errors in some unexpected places. I've attached an example which gives a compiler error when compiled with gcc 4.7.2 using c++11. I've observed the same issue on clang, although I haven't been able to create a simple reproduction for it there.
Attachments (1)
Note:
See TracTickets
for help on using tickets.
reproduction code