History

Ensure a C++ object exists for all static const members of structs or create constexpr functions. - This is an attempt to adhere to the letter of the C++ specification.

arr committed 9 years ago

Commit af5c7a91 parent 4d839d714 files · +86 −64Browse files

Showing the changes to src/include/runtime.h (1 of 14 files). Show all

Unified · Split

src/include/runtime.h+3−3
@@ -364,11 +364,11 @@ namespace disvm · 363 unmodified lines
364 };364 };
365 365
366 // Runtime constants366 // Runtime constants
367 struct runtime_constants367 namespace runtime_constants
368 {368 {
369 static const auto nil = std::size_t{ 0 };369 const auto nil = std::size_t{ 0 };
370 370
371 static const auto invalid_program_counter = vm_pc_t{ ~0 };371 const auto invalid_program_counter = vm_pc_t{ ~0 };
372 };372 };
373 373
374 // Addressing mode for middle instruction data374 // Addressing mode for middle instruction data