[Boost-bugs] [Boost C++ Libraries] #12331: BOOST_FUSION_ADAPT_STRUCT doesn't work with empty struct on Visual Studio

Subject: [Boost-bugs] [Boost C++ Libraries] #12331: BOOST_FUSION_ADAPT_STRUCT doesn't work with empty struct on Visual Studio
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-07-18 12:06:18


#12331: BOOST_FUSION_ADAPT_STRUCT doesn't work with empty struct on Visual Studio
----------------------------------------+---------------------
 Reporter: Benoit Blanchon <benoit@…> | Owner: djowel
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: fusion
  Version: Boost 1.61.0 | Severity: Problem
 Keywords: |
----------------------------------------+---------------------
 The following code works fine on GCC and Clang:

 {{{#!c++
 #include <boost/fusion/adapted/struct/adapt_struct.hpp>

 class EmptyStruct {};

 BOOST_FUSION_ADAPT_STRUCT(EmptyStruct);

 int main() {}
 }}}

 But on Visual Studio 2015 Update 3, it gives the following error:

 {{{
 error C2220: warning treated as error - no 'object' file generated
 warning C4003: not enough actual parameters for macro
 'BOOST_PP_SEQ_DETAIL_IS_NOT_EMPTY'
 warning C4003: not enough actual parameters for macro
 'BOOST_PP_SEQ_DETAIL_EMPTY_SIZE
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12331>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC