safe.hpp: Add comment noting that safe is not compatible with uint128_t

This commit is contained in:
theoreticalbts 2015-05-06 16:51:54 -04:00
parent 3bf3b0c9b4
commit 7dcfa9a910

View file

@ -10,6 +10,9 @@ namespace fc {
* This type is designed to provide automatic checks for * This type is designed to provide automatic checks for
* integer overflow and default initialization. It will * integer overflow and default initialization. It will
* throw an exception on overflow conditions. * throw an exception on overflow conditions.
*
* It can only be used on built-in types. In particular,
* safe<uint128_t> is buggy and should not be used.
*/ */
template<typename T> template<typename T>
struct safe struct safe