You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a subtle bug but the DataType is now a bool due to test_for_is_heap being a bool; this becomes an issue because in test_is_heap the following attempts to instantiate an vector of numbers beginning from a random point.
This was not a problem before because the pre-increment operator was implemented for type bool; with C++ 17 this is no longer the case and this operator has been deprecated. Therefor any C++ 17 compliant compiler will fail to compile at this point ++operator source. In addition the test most likely intended to test whether with the int data type.
The text was updated successfully, but these errors were encountered:
Currently in
is_heap_tests.hpp
lines359-361
will not compile or will eventually not compile for any user using C++ 17.The specific code causing this issue are the following lines
These lines match to a templated function with the following signature
This is a subtle bug but the
DataType
is now abool
due totest_for_is_heap
being a bool; this becomes an issue because intest_is_heap
the following attempts to instantiate an vector of numbers beginning from a random point.This was not a problem before because the pre-increment operator was implemented for type
bool
; with C++ 17 this is no longer the case and this operator has been deprecated. Therefor any C++ 17 compliant compiler will fail to compile at this point ++operator source. In addition the test most likely intended to test whether with theint
data type.The text was updated successfully, but these errors were encountered: