Skip to content

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

Merged
merged 1 commit into from Jan 31, 2013

1 participant

@bgamari
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.

@bgamari bgamari 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.
20c3039
@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
Something went wrong with that request. Please try again.