[Boost-bugs] [Boost C++ Libraries] #7075: Workaround for error: the type of partial specialization template parameter constant "n1" depends on another template parameter

Subject: [Boost-bugs] [Boost C++ Libraries] #7075: Workaround for error: the type of partial specialization template parameter constant "n1" depends on another template parameter
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-04 09:54:43


#7075: Workaround for error: the type of partial specialization template parameter
constant "n1" depends on another template parameter
-------------------------------------+--------------------------------------
 Reporter: 1czajnik@… | Owner: viboes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: ratio
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------+--------------------------------------
 Compiling a file.cpp with just 1 line:
 {{{
 #include <boost/chrono/time_point.hpp>
 }}}
 with a TI compiler fails with
 {{{
 error: the type of partial specialization template parameter constant "n1"
 depends on another template parameter
 }}}
 and similar errors in files: ratio/detail/mpl/gcd.hpp and lcm.hpp.

 Proposed workaround: mpl has a file mpl/aux_/config/dependent_nttp.hpp,
 which correctly #defines
 BOOST_MPL_CFG_NO_DEPENDENT_NONTYPE_PARAMETER_IN_PARTIAL_SPEC for this
 compiler. However, I couldn't find any place in boost, where this macro
 would be used.

 I've prepared a patch, that uses this macro to conditionally work around
 this problem.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7075>
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:09 UTC