Closed H1X4Dev closed 1 year ago
The following code is working by using BOOST 1.61 libraries;
// TODO: change 201701L when optional will become part of standard
#if __cplusplus >= 201701L
#include <string_view>
namespace SuperiorMySqlpp
{
using StringView = std::string_view;
}
#else
#include <boost/utility/string_view.hpp>
namespace SuperiorMySqlpp
{
using StringView = boost::string_view;
inline namespace StringViewLiterals
{
inline boost::basic_string_view<char>
operator""sv(const char* __str, size_t __len)
{
return boost::basic_string_view<char>{__str, __len};
}
inline boost::basic_string_view<wchar_t>
operator""sv(const wchar_t* __str, size_t __len)
{
return boost::basic_string_view<wchar_t>{__str, __len};
}
}
}
#endif
Hi, maybe it would be better to use
or
Can you please try it?
This header does not exist in MSVC.
The following header;
is not existent in CMAKE + MSVC14 environment as shown in picture; http://i.imgur.com/AvrejUx.png
The following options have been appended to CMakeLists.txt;
Although, the header non existence still persists.