Opened 7 years ago

Closed 5 years ago

#11864 closed Bugs (fixed)

C4348 - Multiple warnings in Boost::Spirit

Reported by: Alister Fong <alister_fong@…> Owned by: Joel de Guzman
Milestone: To Be Determined Component: spirit
Version: Boost 1.60.0 Severity: Problem
Keywords: Cc: braden@…

Description

When compiling using Boost 1.60 in MSVC 2010 I get the following 2 warnings which I never had before when using Boost 1.58 and is really annoying.

============================================================================ 3>\boost/spirit/home/support/terminal.hpp(264): warning C4348: 'boost::spirit::terminal<Terminal>::result_helper' : redefinition of default parameter : parameter 3 3> with 3> [ 3> Terminal=boost::spirit::tag::lit 3> ] 3> F:\CASS2\RR\library\Boost\include\boost/spirit/home/support/terminal.hpp(270) : see declaration of 'boost::spirit::terminal<Terminal>::result_helper' 3> with 3> [ 3> Terminal=boost::spirit::tag::lit 3> ] ============================================================================

============================================================================ 3>\boost/spirit/home/support/terminal.hpp(264): warning C4348: 'boost::spirit::terminal<Terminal>::result_helper' : redefinition of default parameter : parameter 4 3> with 3> [ 3> Terminal=boost::spirit::tag::ulong_ 3> ] 3> F:\CASS2\RR\library\Boost\include\boost/spirit/home/support/terminal.hpp(270) : see declaration of 'boost::spirit::terminal<Terminal>::result_helper' 3> with 3> [ 3> Terminal=boost::spirit::tag::ulong_ 3> ] 3> \boost/spirit/home/support/common_terminals.hpp(142) : see reference to class template instantiation 'boost::spirit::terminal<Terminal>' being compiled 3> with 3> [ 3> Terminal=boost::spirit::tag::ulong_ 3> ] ============================================================================

Change History (10)

comment:1 by Alister Fong <alister_fong@…>, 7 years ago

When compiling using Boost 1.60 in MSVC 2010 I get the following 2 warnings which I never had before when using Boost 1.58 and is really annoying.

============================================================================ 3>\boost/spirit/home/support/terminal.hpp(264): warning C4348: 'boost::spirit::terminal<Terminal>::result_helper' : redefinition of default parameter : parameter 3 3> with 3> [ 3> Terminal=boost::spirit::tag::lit 3> ] 3> boost/spirit/home/support/terminal.hpp(270) : see declaration of 'boost::spirit::terminal<Terminal>::result_helper' 3> with 3> [ 3> Terminal=boost::spirit::tag::lit 3> ] ============================================================================

============================================================================ 3>\boost/spirit/home/support/terminal.hpp(264): warning C4348: 'boost::spirit::terminal<Terminal>::result_helper' : redefinition of default parameter : parameter 4 3> with 3> [ 3> Terminal=boost::spirit::tag::ulong_ 3> ] 3> \boost/spirit/home/support/terminal.hpp(270) : see declaration of 'boost::spirit::terminal<Terminal>::result_helper' 3> with 3> [ 3> Terminal=boost::spirit::tag::ulong_ 3> ] 3> \boost/spirit/home/support/common_terminals.hpp(142) : see reference to class template instantiation 'boost::spirit::terminal<Terminal>' being compiled 3> with 3> [ 3> Terminal=boost::spirit::tag::ulong_ 3> ] ============================================================================

comment:2 by Joel de Guzman, 7 years ago

Can you please submit a patch to https://github.com/boostorg/spirit/ develop branch?

comment:3 by Braden McDaniel <braden@…>, 7 years ago

Cc: braden@… added

comment:3 by Braden McDaniel <braden@…>, 7 years ago

Cc: braden@… added

comment:3 by Braden McDaniel <braden@…>, 7 years ago

Cc: braden@… added

comment:3 by Braden McDaniel <braden@…>, 7 years ago

Cc: braden@… added

comment:3 by Braden McDaniel <braden@…>, 7 years ago

Cc: braden@… added

comment:3 by Braden McDaniel <braden@…>, 7 years ago

Cc: braden@… added

comment:4 by Braden McDaniel <braden@…>, 7 years ago

comment:5 by Joel de Guzman, 5 years ago

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