De-constexpr
sf::String::InvalidPos
This fails to link on MinGW. Until that can be resolved we can go back to a normal constant. Because this is just an integer it doesn't matter all that much whether it's const or constexpr.
This commit is contained in:
parent
741fe219da
commit
06c5c50537
@ -56,7 +56,7 @@ public:
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
// NOLINTBEGIN(readability-identifier-naming)
|
// NOLINTBEGIN(readability-identifier-naming)
|
||||||
/// Represents an invalid position in the string
|
/// Represents an invalid position in the string
|
||||||
static constexpr std::size_t InvalidPos{std::basic_string<std::uint32_t>::npos};
|
static const std::size_t InvalidPos{std::basic_string<std::uint32_t>::npos};
|
||||||
// NOLINTEND(readability-identifier-naming)
|
// NOLINTEND(readability-identifier-naming)
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
@ -34,6 +34,10 @@
|
|||||||
|
|
||||||
namespace sf
|
namespace sf
|
||||||
{
|
{
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
const std::size_t String::InvalidPos;
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
String::String() = default;
|
String::String() = default;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user