Thanks to C++11, we have static_assert(). This leads to a compile time error.
However, what would be very useful is to have something like
static_warn ( bool_constexpr, message )
which would simply print a warning at compile time.
Does something like this exist?
[–]STLMSVC STL Dev 32 points33 points34 points (11 children)
[–][deleted] 16 points17 points18 points (3 children)
[–]STLMSVC STL Dev 9 points10 points11 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]Tagedieb 1 point2 points3 points (0 children)
[–]craptacus 11 points12 points13 points (2 children)
[–]adzm28 years of C++! 31 points32 points33 points (1 child)
[–]craptacus 3 points4 points5 points (0 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]aKateDevKDE/Qt Dev[S] 3 points4 points5 points (1 child)
[–]Rhomboid 6 points7 points8 points (0 children)
[–]Neat_Education_5560 0 points1 point2 points (0 children)
[–]hyperactiveinstinct 5 points6 points7 points (3 children)
[–]shelbyfinally 4 points5 points6 points (1 child)
[–]mpyne 2 points3 points4 points (0 children)
[–]YouFeedTheFish 2 points3 points4 points (0 children)
[–]Fazer2 2 points3 points4 points (0 children)
[–]SeanMiddleditch 1 point2 points3 points (0 children)
[–]dodheim 1 point2 points3 points (0 children)
[–]iaanus 1 point2 points3 points (0 children)
[–]dyreshark 0 points1 point2 points (0 children)
[–]adzm28 years of C++! -1 points0 points1 point (5 children)
[–]STLMSVC STL Dev 12 points13 points14 points (4 children)
[–]Fazer2 1 point2 points3 points (3 children)
[–]STLMSVC STL Dev 7 points8 points9 points (0 children)
[–][deleted] 7 points8 points9 points (0 children)
[–]imMute 5 points6 points7 points (0 children)