Opened 9 years ago

Closed 7 years ago

#9085 closed Bugs (fixed)

Duplication of BOOST_STRONG_TYPEDEF in "boost/strong_typedef.hpp" "boost/serialization/strong_typedef.hpp" leads to compile error

Reported by: KaiSt <k.stuhlemmer@…> Owned by: Robert Ramey
Milestone: To Be Determined Component: serialization
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

If a file (indirectly) includes the two header files, the compilation fails. For example one cannot include "boost/strong_typedef.hpp" and "boost/graph/adjacency_list.hpp" in one file.

An appropriate solution would be to place a forwarding include in one of the headers directing to the other.

Attachments (1)

strong_typedef.hpp.patch (3.5 KB ) - added by KaiSt <k.stuhlemmer@…> 9 years ago.
a possible solution

Download all attachments as: .zip

Change History (4)

by KaiSt <k.stuhlemmer@…>, 9 years ago

Attachment: strong_typedef.hpp.patch added

a possible solution

comment:1 by viboes, 9 years ago

Component: Noneserialization
Owner: set to Robert Ramey

comment:2 by Robert Ramey, 9 years ago

actually, boost/strong_typedef.hpp should be removed since it was only in there for backwards compatibility. I'll get to that soon.

Robert Ramey

comment:3 by Robert Ramey, 7 years ago

Resolution: fixed
Status: newclosed

boost/strong_typedef.hpp has now been removed

Note: See TracTickets for help on using tickets.