Skip to content

Commit

Permalink
Check if C++26 is enabled for pack indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Nov 2, 2024
1 parent ded2923 commit 1214e62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/tao/pq/table_writer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <memory>
#include <string>
#include <string_view>
#if !defined( __cpp_pack_indexing )
#if !defined( __cpp_pack_indexing ) && ( __cplusplus >= 202302L )
#include <tuple>
#endif
#include <type_traits>
Expand All @@ -27,7 +27,7 @@ namespace tao::pq
std::shared_ptr< transaction > m_previous;
std::shared_ptr< transaction > m_transaction;

#if defined( __cpp_pack_indexing )
#if defined( __cpp_pack_indexing ) && ( __cplusplus >= 202302L )

template< std::size_t... Os, std::size_t... Is >
void insert_indexed( std::index_sequence< Os... > /*unused*/,
Expand Down
4 changes: 2 additions & 2 deletions include/tao/pq/transaction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <cstdio>
#include <memory>
#include <string>
#if !defined( __cpp_pack_indexing )
#if !defined( __cpp_pack_indexing ) && ( __cplusplus >= 202302L )
#include <tuple>
#endif
#include <type_traits>
Expand Down Expand Up @@ -68,7 +68,7 @@ namespace tao::pq
const int lengths[],
const int formats[] );

#if defined( __cpp_pack_indexing )
#if defined( __cpp_pack_indexing ) && ( __cplusplus >= 202302L )

template< std::size_t... Os, std::size_t... Is >
void send_indexed( const char* statement,
Expand Down

0 comments on commit 1214e62

Please sign in to comment.