fixes for linux

master
cobrapitz 3 years ago
parent 7aa980ef8d
commit 31b668100e

@ -8,7 +8,7 @@
#define assertm(exp, msg) = assert(((void)msg, exp)) #define assertm(exp, msg) = assert(((void)msg, exp))
#ifndef or #ifdef _MSC_VER
#define or || #define or ||
#define and && #define and &&
#define xor ^ #define xor ^

@ -3,10 +3,10 @@
namespace cb { namespace cb {
bool string::starts_with(std::string_view content, std::string_view begins_with) { bool string::starts_with(std::string_view content, std::string_view begins_with) {
return content.find(begins_with) != std::string::npos; return content.find(begins_with) != std::string_view::npos;
} }
bool string::ends_with(std::string_view content, std::string_view ends_with) { bool string::ends_with(std::string_view content, std::string_view ends_with) {
return content.find(ends_with) != std::string::npos; return content.find(ends_with) != std::string_view::npos;
} }
} }

Loading…
Cancel
Save