Opened 11 years ago

Closed 10 years ago

#6784 closed Bugs (fixed)

boost::unordered compilation failure in emplace_args.hpp with Solaris Studio 12.3

Reported by: Luke Elliott <lukester_null@…> Owned by: Daniel James
Milestone: Boost 1.50.0 Component: unordered
Version: Boost 1.49.0 Severity: Problem
Keywords: Cc:

Description

boost::unordered_map appears to cause compilation errors with Solaris Studio 12.3. There is a workaround in detail/emplace_args.hpp for 5.9 or earlier of the compiler, but it doesn't also doesn't work (SVN comment says it is untested...).

Fixing the workaround and applying it for <= 5.12 seems to do the trick (attached).

No other compiler versions than that with Solaris Studio 12.3 tested.

Regards

Luke Elliott.

Attachments (2)

unordered_map_test.cpp (1.8 KB ) - added by Luke Elliott <lukester_null@…> 11 years ago.
Demonstration of issue.
emplace_args.patch (1.6 KB ) - added by Luke Elliott <lukester_null@…> 11 years ago.
Possible fix.

Download all attachments as: .zip

Change History (6)

by Luke Elliott <lukester_null@…>, 11 years ago

Attachment: unordered_map_test.cpp added

Demonstration of issue.

by Luke Elliott <lukester_null@…>, 11 years ago

Attachment: emplace_args.patch added

Possible fix.

comment:1 by Daniel James, 11 years ago

Status: newassigned

Thanks for the useful report, I'm going to make a bit of a more complicated change in trunk to try to tidy things up a little. Can you try it out?

comment:2 by Daniel James, 11 years ago

(In [77972]) Unordered: Rejig some of the emplace_args macro code. Refs #6784

This is a bit cleaner and will hopefully fix the Sun problems.

comment:3 by Luke Elliott <lukester_null@…>, 11 years ago

Yep that works for me, thanks!

comment:4 by Daniel James, 10 years ago

Milestone: To Be DeterminedBoost 1.50.0
Resolution: fixed
Status: assignedclosed

Merged to release in [78319]

Note: See TracTickets for help on using tickets.