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:
Chris Thrasher 2023-03-28 21:27:51 -06:00
parent 741fe219da
commit 06c5c50537
2 changed files with 5 additions and 1 deletions

View File

@ -56,7 +56,7 @@ public:
////////////////////////////////////////////////////////////
// NOLINTBEGIN(readability-identifier-naming)
/// 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)
////////////////////////////////////////////////////////////

View File

@ -34,6 +34,10 @@
namespace sf
{
////////////////////////////////////////////////////////////
const std::size_t String::InvalidPos;
////////////////////////////////////////////////////////////
String::String() = default;