Modify

Ticket #7075 (closed Bugs: fixed)

Opened 22 months ago

Last modified 22 months ago

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

7075.patch Download (3.6 KB) - added by 1czajnik@… 22 months ago.

Change History

Changed 22 months ago by 1czajnik@…

comment:1 Changed 22 months ago by viboes

  • Status changed from new to assigned
  • Milestone changed from To Be Determined to Boost 1.51.0

Committed in trunk revision 79267.

comment:2 Changed 22 months ago by viboes

  • Status changed from assigned to closed
  • Resolution set to fixed

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

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.