Ensure that C++11 checksum is evaluated at compile-time
authorBen Gamari <bgamari.foss@gmail.com>
Thu, 31 Jan 2013 20:53:52 +0000 (15:53 -0500)
committerBen Gamari <bgamari.foss@gmail.com>
Thu, 31 Jan 2013 20:55:24 +0000 (15:55 -0500)
commit20c3039cd8408fdb96fb8ab5fbf65fc16b2ab2f2
treeaa5504abd459338e90ddf932e849c236a9512398
parentd9664db468753578b92e2421dac290cb1db0684b
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.
src/libs/checksumm.h