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
364364 };
365365
366366 // Runtime constants
367− struct runtime_constants
367+ namespace runtime_constants
368368 {
369− static const auto nil = std::size_t{ 0 };
369+ const auto nil = std::size_t{ 0 };
370370
371− static const auto invalid_program_counter = vm_pc_t{ ~0 };
371+ const auto invalid_program_counter = vm_pc_t{ ~0 };
372372 };
373373
374374 // Addressing mode for middle instruction data