Skip to content

Commit d2e98ec

Browse files
committed
std::is_trivial is deprecated in C++26
1 parent 3bdebc5 commit d2e98ec

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

ChangeLog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
Changes in version 12.9, 02/05/2025
1+
Changes in version 12.9, 14/05/2025
22
===================================
33

44
* CMakeLists.txt: Speed up build by removing compile dependencies.
55
* Move private header files from /include to /src.
66
* src/CMakeLists.txt: Update for private header files in /src.
77
* test/CMakeLists.txt: Update for private header files in /src.
8+
* Vector.hpp: Get rid of std::is_trivial which is deprecated in C++26.
89

910
Changes in version 12.8, 12/04/2025
1011
===================================

include/primesieve/Vector.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
///
22
/// @file Vector.hpp
33
///
4-
/// Copyright (C) 2023 Kim Walisch, <kim.walisch@gmail.com>
4+
/// Copyright (C) 2025 Kim Walisch, <kim.walisch@gmail.com>
55
///
66
/// This file is distributed under the BSD License. See the COPYING
77
/// file in the top level directory.
@@ -268,7 +268,7 @@ class Vector
268268
// with constructors (and with in-class initialization of
269269
// non-static members). But it does not default initialize
270270
// memory for POD types like int, long.
271-
if (!std::is_trivial<T>::value)
271+
if (!std::is_trivially_default_constructible<T>::value)
272272
uninitialized_default_construct(end_, array_ + n);
273273

274274
end_ = array_ + n;

0 commit comments

Comments
 (0)