Opened 7 years ago

#11260 new Bugs

stored_edge_property's copy constructor is implicitly deleted for some compilers

Reported by: dave.lowell@… 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)

property_example.cpp (291 bytes ) - added by dave.lowell@… 7 years ago.
reproduction code

Download all attachments as: .zip

Change History (1)

by dave.lowell@…, 7 years ago

Attachment: property_example.cpp added

reproduction code

Note: See TracTickets for help on using tickets.