Ensure that C++11 checksum is evaluated at compile-time #91

Merged
merged 1 commit into from Jan 31, 2013

Conversation

Projects
None yet
1 participant
Contributor

bgamari commented Jan 31, 2013

Wrapping the expression in an std::integral_constant<> seems to do the
right thing, even with no optimization.

Unfortunately, it seems that gcc 4.6 doesn't support user-defined string
literals, so we'll need to wait until we start building with 4.7 before
enabling this.

Ensure that C++11 checksum is evaluated at compile-time
Wrapping the expression in an std::integral_constant<> seems to do the
right thing, even with no optimization.

Unfortunately, it seems that gcc 4.6 doesn't support user-defined string
literals, so we'll need to wait until we start building with 4.7 before
enabling this.

bgamari added a commit that referenced this pull request Jan 31, 2013

Merge pull request #91 from bgamari/edge
Ensure that C++11 checksum is evaluated at compile-time

@bgamari bgamari merged commit 09f67f2 into Smoothieware:edge Jan 31, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment