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:
parent
44b7c5b918
commit
71902bfd99
|
@ -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_;
|
||||
|
|
Loading…
Reference in New Issue
Block a user