mirror of
https://github.com/boostorg/safe_numerics.git
synced 2026-02-22 03:32:24 +00:00
Merge commit '6bd16a0ec91c800000b939e19972ad44f6d79feb' into develop
# Conflicts: # doc/boostbook/cpp.xml # doc/boostbook/eliminate_runtime_penalty.xml # doc/boostbook/exception_policy_concept.xml # doc/boostbook/promotion_policy_concept.xml # doc/boostbook/safe.xml # doc/boostbook/safe_introduction.xml # doc/boostbook/safe_numeric_concept.xml # doc/boostbook/safe_range.xml # doc/boostbook/trap_exception.xml # doc/boostbook/tutorial.xml # examples/example7.cpp
This commit is contained in:
@@ -24,7 +24,7 @@ int main(){
|
||||
std::cout << "error detected!" << std::endl;
|
||||
}
|
||||
|
||||
// solution: replace int with safe<int> and char with safe<char>
|
||||
// solution: replace int with safe<int> and unsigned int with safe<unsigned int>
|
||||
std::cout << "Using safe numerics" << std::endl;
|
||||
try{
|
||||
using namespace boost::numeric;
|
||||
|
||||
Reference in New Issue
Block a user