Opened 15 years ago

Closed 13 years ago

Last modified 13 years ago

#1614 closed Bugs (fixed)

vector workaround needed for MSVC10

Reported by: François Barel Owned by: Joel de Guzman
Milestone: Boost 1.43.0 Component: fusion
Version: Boost Development Trunk Severity: Problem
Keywords: MSVC VC10 vector Cc: frabar666@…

Description

Hi,

It seems the vector constructor workaround used for MSVC8 and earlier (ctor_helper in boost/fusion/container/vector/vector.hpp) is also required for MSVC9 RTM.

Unfortunately I don't have a simple test case ready. My observation is simply that my Spirit2 parser (using fusion tuples and vectors as rule attributes) doesn't compile on VC9 unless I enable that workaround with the attached patch.

Cheers,
François

Attachments (1)

fusion-MSVC9.diff (766 bytes ) - added by François Barel 15 years ago.

Download all attachments as: .zip

Change History (8)

by François Barel, 15 years ago

Attachment: fusion-MSVC9.diff added

comment:1 by Stjepan Rajko, 13 years ago

[Bug Sprint]

Boost trunk still uses #if BOOST_WORKAROUND(BOOST_MSVC, <= 1400), so this patch has not been applied. Is it still needed?

in reply to:  1 comment:2 by François Barel <frabar666@…>, 13 years ago

Cc: frabar666@… added

Yes, this patch is still needed. Please see http://www.nabble.com/-phoenix2--Compilation-error-with-operator!-td22203420.html for a repro by Sergei Politov.

comment:3 by Stjepan Rajko, 13 years ago

[Bug Sprint]

Confirming that the referenced code fails on MSVC9 SP1 with boost trunk and that the attached patch fixes the problem. I spent some time trying to boil the test code down to a fusion-only test case but failed.

comment:4 by anonymous, 13 years ago

Resolution: fixed
Status: newclosed

comment:5 by rwebb <richard.webb@…>, 13 years ago

Keywords: VC10 added; VC9 removed
Milestone: Boost 1.36.0Boost 1.43.0
Resolution: fixed
Status: closedreopened
Summary: vector workaround needed for MSVC9vector workaround needed for MSVC10

According to the post @ http://article.gmane.org/gmane.comp.lib.boost.devel/203066, this same issue effects the RTM version of VC10.

Fix is to alter the workarounds mentioned in the VC9 patch to check BOOST_MSVC against 1600 instead of 1500.

comment:6 by Joel de Guzman, 13 years ago

Resolution: fixed
Status: reopenedclosed

(In [61487]) fix #1614

comment:7 by Joel de Guzman, 13 years ago

(In [61488]) fix #1614

Note: See TracTickets for help on using tickets.