Modify

Opened 5 years ago

Closed 5 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@… 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by 1czajnik@…

Attachment: 7075.patch added

comment:1 Changed 5 years ago by viboes

Milestone: To Be DeterminedBoost 1.51.0
Status: newassigned

Committed in trunk revision 79267.

comment:2 Changed 5 years ago by viboes

Resolution: fixed
Status: assignedclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain viboes.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.