NanoRange icon indicating copy to clipboard operation
NanoRange copied to clipboard

Nanorange failed with error C2607 on MSVC

Open QuellaZhang opened this issue 4 years ago • 3 comments

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 <typename T> 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'.

QuellaZhang avatar Mar 23 '21 06:03 QuellaZhang

Hi, sorry for getting back so late on it. DataLoaders quitting unexpectedly can happen in Colab or a notebook when you interrupted a cell during data loading. Did you try to reload the data loaders and execute the cell again? This usually fixes the problem.

phlippe avatar Oct 08 '23 14:10 phlippe