Marcel Raad writes:
Ben Pope writes:
multi_index:test_key_extractors:msvc-14.0
This I strongly suspect is a compiler bug. I've tried reducing
the problem to a simple test case but it works in webcompiler.cloudapp.net
with version 19.00.22620:
#include
template
struct if_{using type=T1;};
template
struct if_{using type=T2;};
template
struct const_member_base{using result_type=Type;};
template
struct non_const_member_base{using result_type=Type;};
template
struct member:
if_<
std::is_const<Type>::value,
const_member_base,
non_const_member_base
::type
{
};
struct X
{
int x;
};
int main()
{
member t;
}
Maybe someone can try with version 19.00.22609, which is what
teeks99-08f-win2012R2-64on64 is running? If it fails, then we have
a compiler bug fixed on mainline.
Thank you,
Joaquín M López Muñoz
Telefónica