1
0
mirror of https://github.com/OlafvdSpek/ctemplate.git synced 2025-10-05 19:16:54 +08:00

Solves C3083 error on msvc

This commit is contained in:
atkawa7 2017-06-23 19:19:47 -07:00 committed by GitHub
parent 44b7c5b918
commit 71902bfd99

View File

@ -42,10 +42,12 @@ namespace ctemplate {
using std::string;
#ifndef _MSC_VER
bool PerExpandData::DataEq::operator()(const char* s1, const char* s2) const {
return ((s1 == 0 && s2 == 0) ||
(s1 && s2 && *s1 == *s2 && strcmp(s1, s2) == 0));
}
#endif
PerExpandData::~PerExpandData() {
delete map_;