Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/util/ies.cpp
| Show All 17 Lines | |||||
| #include "util/foreach.h" | #include "util/foreach.h" | ||||
| #include "util/ies.h" | #include "util/ies.h" | ||||
| #include "util/math.h" | #include "util/math.h" | ||||
| #include "util/string.h" | #include "util/string.h" | ||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| // NOTE: For some reason gcc-7.2 does not instantiate this versio of allocator | // NOTE: For some reason gcc-7.2 does not instantiate this version of the | ||||
| // gere (used in IESTextParser). Works fine for gcc-6, gcc-7.3 and gcc-8. | // allocator here (used in IESTextParser). Works fine for gcc-6, gcc-7.3 and gcc-8. | ||||
| // | // | ||||
| // TODO(sergey): Get to the root of this issue, or confirm this i a compiler | // TODO(sergey): Get to the root of this issue, or confirm this is a compiler | ||||
| // issue. | // issue. | ||||
| template class GuardedAllocator<char>; | template class GuardedAllocator<char>; | ||||
| bool IESFile::load(const string &ies) | bool IESFile::load(const string &ies) | ||||
| { | { | ||||
| clear(); | clear(); | ||||
| if (!parse(ies) || !process()) { | if (!parse(ies) || !process()) { | ||||
| clear(); | clear(); | ||||
| ▲ Show 20 Lines • Show All 374 Lines • Show Last 20 Lines | |||||