From 6d07e65d7d23d2acb45c20107a3fd52adc0c3465 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=83=E6=B4=97?= <758251611@qq.com> Date: Mon, 15 Jul 2024 16:40:29 +0800 Subject: [PATCH] fixed deque --- include/fast_io_dsal/impl/deque.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fast_io_dsal/impl/deque.h b/include/fast_io_dsal/impl/deque.h index 0528717e3..0bc4d13e4 100644 --- a/include/fast_io_dsal/impl/deque.h +++ b/include/fast_io_dsal/impl/deque.h @@ -764,7 +764,7 @@ class deque grow_back(); } auto currptr{controller.back_block.curr_ptr}; - if constexpr (::std::is_trivially_constructible_v) + if constexpr (!::std::is_trivially_constructible_v) { ::std::construct_at(currptr, ::std::forward(args)...); } @@ -794,7 +794,7 @@ class deque constexpr void pop_back_unchecked() noexcept { - if constexpr (::std::is_trivially_destructible_v) + if constexpr (!::std::is_trivially_destructible_v) { ::std::destroy_at(controller.back_block.curr_ptr - 1); } @@ -871,7 +871,7 @@ class deque constexpr void pop_front_unchecked() noexcept { - if constexpr (::std::is_trivially_destructible_v) + if constexpr (!::std::is_trivially_destructible_v) { ::std::destroy_at(controller.front_block.curr_ptr); }