
14 May
2012
14 May
'12
1:02 p.m.
AMDG On 05/13/2012 04:45 PM, Josh Quigley wrote:
Hi,
I grabbed an mpl cross product implementation (product_view) of this mailing list. It works fine in MSVC but fails in gcc:
It doesn't work because you're relying on
implementation details. Use boost::mpl::at_c
<snip> BOOST_AUTO_TEST_CASE_TEMPLATE(MyTest, DecimalIntegralT, EachDecimalWithEachIntegralT) { { typename DecimalIntegralT::item1 r(1234567); // Fails on gcc: no type named ‘item0’ in ‘struct boost::mpl::v_item
, 0>, 0> typename DecimalIntegralT::item0 d(r); BOOST_CHECK_EQUAL(static_cast<long long>(d), r); } }
In Christ, Steven Watanabe