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: | 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)
Change History (3)
by , 10 years ago
Attachment: | 7075.patch added |
---|
comment:1 by , 10 years ago
Milestone: | To Be Determined → Boost 1.51.0 |
---|---|
Status: | new → assigned |
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Committed in trunk revision 79267.