We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46c2380 commit b2e5c0dCopy full SHA for b2e5c0d
src/goto-programs/goto_program_template.h
@@ -216,8 +216,15 @@ class goto_program_templatet
216
}
217
218
//! Uniquely identify an invalid target or location
219
+ #if (defined _MSC_VER && _MSC_VER <= 1800)
220
+ // Visual Studio <= 2013 does not support constexpr, making
221
+ // numeric_limits::max() unviable for a static const member
222
+ static const unsigned nil_target=
223
+ static_cast<unsigned>(-1);
224
+ #else
225
static const unsigned nil_target=
226
std::numeric_limits<unsigned>::max();
227
+ #endif
228
229
//! A globally unique number to identify a program location.
230
//! It's guaranteed to be ordered in program order within
0 commit comments