Detect C++ implementations that support constexpr strlen()
authorPeter Griess <pgriess@fb.com>
Wed, 9 Oct 2013 06:01:34 +0000 (23:01 -0700)
committerSara Golemon <sgolemon@fb.com>
Thu, 24 Oct 2013 21:53:41 +0000 (14:53 -0700)
commite5b563e9dad4c29ce666653da8a294708ef06a0e
tree35c09b0b8e535bb9d547905cebe465244bac8405
parent31005a98c091b4f28650cad4b7420d54b72381ad
Detect C++ implementations that support constexpr strlen()

Summary:
- Only declare the Range constructor as a constexpr if strlen() is also
a constexpr. Otherwise, we'll get compilation errors.

Test Plan:
- fbconfig -r folly && fbmake runtests
- ./configure && make check on Ubuntu/FC/Mac

Reviewed By: soren@fb.com

FB internal diff: D1003124
folly/Range.h
folly/configure.ac
folly/test/RangeTest.cpp