Ticket #7075 (closed Bugs: fixed)
Workaround for error: the type of partial specialization template parameter constant "n1" depends on another template parameter
|Reported by:||1czajnik@…||Owned by:||viboes|
|Version:||Boost Development Trunk||Severity:||Problem|
Compiling a file.cpp with just 1 line:
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.
- Status changed from new to assigned
- Milestone changed from To Be Determined to Boost 1.51.0