Skip to content

Commit

Permalink
correct float128_snips.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jzmaddock committed Sep 22, 2024
1 parent 41606d0 commit 9a97023
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion example/float128_snips.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// Contains Quickbook markup in comments.

//[float128_eg
#include <boost/type_index.hpp>
#include <boost/multiprecision/float128.hpp>
#include <boost/math/special_functions/gamma.hpp>
#include <iostream>
Expand Down Expand Up @@ -53,7 +54,7 @@ and have full `std::numeric_limits` support:
std::cout << "GCC " << __VERSION__ << std::endl << std::endl;
std::cout << "Type name: boost::multiprecision::float128" << std::endl;
std::cout << "Full name: " << boost::typeindex::type_id<float128>().pretty_name() << std::endl << std::endl;

#if defined(__cpp_lib_type_trait_variable_templates) && (__cpp_lib_type_trait_variable_templates >= 201510L)
std::cout << "std::is_fundamental<> = " << std::is_fundamental_v<float128> << std::endl;
std::cout << "boost::multiprecision::detail::is_signed<> = " << boost::multiprecision::detail::is_signed_v<float128> << std::endl;
std::cout << "boost::multiprecision::detail::is_unsigned<> = " << boost::multiprecision::detail::is_unsigned_v<float128> << std::endl;
Expand All @@ -64,6 +65,7 @@ and have full `std::numeric_limits` support:
std::cout << "std::is_trivially_copyable<> = " << std::is_trivially_copyable_v<float128> << std::endl;
std::cout << "std::is_standard_layout<> = " << std::is_standard_layout_v<float128> << std::endl;
std::cout << "std::is_pod<> = " << std::is_pod_v<float128> << std::endl;
#endif
std::cout << "std::numeric_limits<>::is_exact = " << std::numeric_limits<float128>::is_exact << std::endl;
std::cout << "std::numeric_limits<>::is_bounded = " << std::numeric_limits<float128>::is_bounded << std::endl;
std::cout << "std::numeric_limits<>::is_modulo = " << std::numeric_limits<float128>::is_modulo << std::endl;
Expand Down

0 comments on commit 9a97023

Please sign in to comment.