Re: [Boost-bugs] [Boost C++ Libraries] #11750: error when compiling boost 1.59 : error: two or more data types in declaration of 'parameter

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11750: error when compiling boost 1.59 : error: two or more data types in declaration of 'parameter
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-10-28 17:35:30


#11750: error when compiling boost 1.59 : error: two or more data types in
declaration of 'parameter
-------------------------------+--------------------------------
  Reporter: ramanats@… | Owner: johnmaddock
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: type_traits
   Version: Boost 1.59.0 | Severity: Problem
Resolution: | Keywords: atomic type_traits
-------------------------------+--------------------------------

Comment (by subra raman <ramanats@…>):

 I read a related thread on stackoverflow
 (http://stackoverflow.com/questions/15406119/two-or-more-data-types-in-
 declaration-of-parameters-using-mingw-cross-compiler)
 that this error could be because of multiple type definitions in a
 parameter list.

 Code snippet from ice_or.cpp, errors reported on lines 16 and 19.

      13 namespace boost {
      14 namespace type_traits {
      15
      16 template <bool b1, bool b2, bool b3 = false, bool b4 = false, bool
 b5 = false, bool b6 = false, bool b7 = false>
      17 struct ice_or;
      18
      19 template <bool b1, bool b2, bool b3, bool b4, bool b5, bool b6,
 bool b7>
      20 struct ice_or
      21 {
      22 BOOST_STATIC_CONSTANT(bool, value = true);
      23 };


 I was able to get past this issue, by renaming the parameter names from
 ice_or.hpp, ice_and.hpp and ice_eq.hpp from b1.. b7 to a1.. a7.
 Not sure why b1, .. b7 were causing issue ?
 Maybe something in my code base has something to do with it ?

 Hopefully this will help some one :-)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11750#comment:3>
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:19 UTC