Opened 7 years ago

#11237 new Bugs

Cannot include iostreams/filter/test.hpp in two compilation units

Reported by: nathan@… Owned by: Jonathan Turkanis
Milestone: To Be Determined Component: iostreams
Version: Boost 1.57.0 Severity: Problem
Keywords: Cc:

Description

The function "boost::iostreams::rand(int)" is multiply defined if you include test.hpp in two separate compilation units. This function should probably just be marked as inlined.

Attachments (1)

rand.diff (1.1 KB ) - added by nathan@… 7 years ago.
Inline the rand function so it doesn't get defined multiple times

Download all attachments as: .zip

Change History (1)

by nathan@…, 7 years ago

Attachment: rand.diff added

Inline the rand function so it doesn't get defined multiple times

Note: See TracTickets for help on using tickets.