Opened 10 years ago

Closed 5 years ago

#7161 closed Bugs (fixed)

Spirit.Classic with Boost.Thread v3 may fail compilation

Reported by: Kohei Takahashi <flast@…> Owned by: Joel de Guzman
Milestone: To Be Determined Component: spirit
Version: Boost 1.50.0 Severity: Problem
Keywords: Cc:

Description

Boost.Thread v3 may not provide the BOOST_ONCE_INIT. see http://www.boost.org/doc/libs/1_50_0/doc/html/thread/synchronization.html#thread.synchronization.once.once_flag

So, Spirit.Classic depends this behavior with BOOST_THREAD_VERSION=3, and may fail compilation.

I attached the patch for this issues.

Attachments (1)

spirit.classic.patch (1.6 KB ) - added by Kohei Takahashi <flast@…> 10 years ago.

Download all attachments as: .zip

Change History (6)

by Kohei Takahashi <flast@…>, 10 years ago

Attachment: spirit.classic.patch added

comment:1 by anonymous, 7 years ago

The issue still exists in Boost 1.58.0

comment:2 by Joel de Guzman, 7 years ago

Can we have this into a PR please?

comment:3 by myasnikovmaksim@…, 7 years ago

Should I merge it with patch provided in https://svn.boost.org/trac/boost/ticket/9456 ?

comment:5 by Joel de Guzman, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.