Use sprout's limits instead of std's and remove unneeded make_unsigned.
I'm not sure what it was supposed to be, maybe a customization point or something, but after the fix for counting the digits correctly I removed the only usage of make_unsigned, so I could also get rid of its implementation. Sweet~
This commit is contained in:
parent
c3dee50e5b
commit
f6bddac63d
3 changed files with 26 additions and 32 deletions
|
@ -26,6 +26,11 @@ target_include_directories(${PROJECT_NAME}
|
|||
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/lib/sprout
|
||||
)
|
||||
target_compile_definitions(${PROJECT_NAME}
|
||||
INTERFACE SPROUT_NO_CXX11_NUMERIC_LIMITS
|
||||
INTERFACE SPROUT_USE_TEMPLATE_ALIASES
|
||||
)
|
||||
|
||||
if (BUILD_TESTING)
|
||||
add_subdirectory(test/unit)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue