Hi,
While porting some code from MPL to MP11, the latter helped to find some
bugs in the ported code [1]
I looked closer at those and found 'behavioural' differences between
MPL and MP11
when accessing sequences with index value that is out of range.
Could anyone help me to understand the following?
1. Why this compiles?
using R = at_c, 100>::type;
Tested in C++11 using GCC, clang, MSVC from VS2017/2019
2. Why this compiles in GCC and clang, but fails with MSVC?
using V = at_c, 100>::type::type;
3. For GCC and clang, why this compiles
static_assert(std::is_same>::value, "");
but this fails?
static_assert(std::is_same>::value, "");
Don't vector_c and range_c yield equivalent sequences?
By the way, MP11's mp_at_c yield void, as expected, there also
no ::type or ::value member, so diagnostics is clearer.
[1] https://github.com/boostorg/gil/issues/249
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net