Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Jan 31, 2013
Commits on Jan 31, 2013
  1. Ensure that C++11 checksum is evaluated at compile-time

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