Skip to content

Nanorange failed with error C2607 on MSVC #113

@QuellaZhang

Description

@QuellaZhang

Hi all,

NanoRange assert failed on upcoming version of MSVC: F:\gitP\tcbrindle\nanorange\test\test_concepts.cpp(183): error C2607: static assertion failed

The failing line is:

static_assert(rng::default_initializable);

which eventually reaches:

template
inline constexpr bool
is_default_initializable<T, std::void_t<decltype(::new T)>> = true;

'::new const int' is not valid as you cannot default initialize a 'const int'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions