Skip to content
Snippets Groups Projects
Commit 81a2b5a8 authored by Adam Wardynski's avatar Adam Wardynski
Browse files

Put definitions for constants for Nowhere, End, Begin.

My relative position tests wouldn't compile in GCC where I used Position::Nowhere for comparison. Apparently according to standard TC1, section 9.4.2, paragraph 4, if you want to use integral static const in a program, you still have to define it even if there's initializer in the declaration.
parent 0e5a316a
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,10 @@ namespace Wccl { ...@@ -6,6 +6,10 @@ namespace Wccl {
const char* Position::type_name = "Position"; const char* Position::type_name = "Position";
const int Position::Nowhere;
const int Position::End;
const int Position::Begin;
std::string Position::to_raw_string() const std::string Position::to_raw_string() const
{ {
switch (val_) { switch (val_) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment