Skip to content

Commit

Permalink
ifdef formattable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anarthal committed Jan 18, 2025
1 parent bcf46ce commit d2ca758
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/test/format_sql/formattable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <boost/mysql/rows_view.hpp>
#include <boost/mysql/sequence.hpp>

#include <boost/decimal.hpp>
#include <boost/optional/optional.hpp>

#include <string>
Expand Down Expand Up @@ -183,12 +182,14 @@ using format_seq_t = format_sequence<std::vector<int>, format_fn_t>;
BOOST_MYSQL_CHECK_FORMATTABLE(format_seq_t, true)

// decimals are formattable
#ifdef BOOST_MYSQL_CXX14
BOOST_MYSQL_CHECK_FORMATTABLE(decimal::decimal32, true);
BOOST_MYSQL_CHECK_FORMATTABLE(decimal::decimal32_fast, true);
BOOST_MYSQL_CHECK_FORMATTABLE(decimal::decimal64, true);
BOOST_MYSQL_CHECK_FORMATTABLE(decimal::decimal64_fast, true);
BOOST_MYSQL_CHECK_FORMATTABLE(decimal::decimal128, true);
BOOST_MYSQL_CHECK_FORMATTABLE(decimal::decimal128_fast, true);
#endif

// other stuff not accepted
BOOST_MYSQL_CHECK_FORMATTABLE(void*, false)
Expand Down

0 comments on commit d2ca758

Please sign in to comment.