mirror of
https://github.com/mariadb-corporation/mariadb-connector-cpp.git
synced 2025-08-11 23:32:23 +00:00
CONCPP-61 Fix of build with VS2015
It choked on const initialization with constexpr Second possible issue was with REASON_UNKNOWN in the ClientInfoStatus enum. It clashes with define in one of Windows headers(Winreg.h). Added undersore prefix to the name. Also fixed most often warning there. Additionaly the commit contains some fixes in test faramework and in tests.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/************************************************************************************
|
||||
Copyright (C) 2020 MariaDB Corporation AB
|
||||
Copyright (C) 2020, 2021 MariaDB Corporation AB
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
@ -46,7 +46,7 @@ public:
|
||||
SQLString();
|
||||
virtual ~SQLString();
|
||||
|
||||
static const std::size_t npos= std::string::npos;
|
||||
static constexpr std::size_t npos{static_cast<std::size_t>(-1)};
|
||||
const char * c_str() const;
|
||||
SQLString& operator=(const SQLString&);
|
||||
//operator std::string() { return std::string(this->c_str(), this->length()); }
|
||||
|
Reference in New Issue
Block a user