Opened 10 years ago

Closed 10 years ago

#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
Milestone: Boost 1.51.0 Component: ratio
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

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.

Attachments (1)

7075.patch (3.6 KB ) - added by 1czajnik@… 10 years ago.

Download all attachments as: .zip

Change History (3)

by 1czajnik@…, 10 years ago

Attachment: 7075.patch added

comment:1 by viboes, 10 years ago

Milestone: To Be DeterminedBoost 1.51.0
Status: newassigned

Committed in trunk revision 79267.

comment:2 by viboes, 10 years ago

Resolution: fixed
Status: assignedclosed

(In [79367]) Ratio: mergre from trunk: fixes #7075

Note: See TracTickets for help on using tickets.