Skip to content

Commit 49eb12d

Browse files
nmpassthfnmpassthf
andauthored
fix: std::is_trivial is deprecated in C++26, replace to 'is_trivially_default_constructible_v && is_trivially_copyable_v'. (#270)
Co-authored-by: nmpassthf <[email protected]>
1 parent a7d16a5 commit 49eb12d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/toml++/impl/parser.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ TOML_ANON_NAMESPACE_START
182182
return value;
183183
}
184184
};
185-
static_assert(std::is_trivial_v<utf8_codepoint>);
185+
static_assert(std::is_trivially_default_constructible_v<utf8_codepoint> && std::is_trivially_copyable_v<utf8_codepoint>);
186186
static_assert(std::is_standard_layout_v<utf8_codepoint>);
187187

188188
struct TOML_ABSTRACT_INTERFACE utf8_reader_interface

toml.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12750,7 +12750,7 @@ TOML_ANON_NAMESPACE_START
1275012750
return value;
1275112751
}
1275212752
};
12753-
static_assert(std::is_trivial_v<utf8_codepoint>);
12753+
static_assert(std::is_trivially_default_constructible_v<utf8_codepoint> && std::is_trivially_copyable_v<utf8_codepoint>);
1275412754
static_assert(std::is_standard_layout_v<utf8_codepoint>);
1275512755

1275612756
struct TOML_ABSTRACT_INTERFACE utf8_reader_interface

0 commit comments

Comments
 (0)