From cd44156f6176a9ad2dba1fb59fd4b3816cb1e946 Mon Sep 17 00:00:00 2001 From: jj683 Date: Thu, 24 Oct 2024 11:28:42 +0200 Subject: [PATCH] Add unsafe vector test case --- test/flex_vector/unsafe.cpp | 1 + test/vector/unsafe.cpp | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 test/vector/unsafe.cpp diff --git a/test/flex_vector/unsafe.cpp b/test/flex_vector/unsafe.cpp index 9be8be6c..bdf7df1b 100644 --- a/test/flex_vector/unsafe.cpp +++ b/test/flex_vector/unsafe.cpp @@ -8,6 +8,7 @@ #include #include +#include using unsafe_memory = immer::memory_policy, immer::no_refcount_policy, diff --git a/test/vector/unsafe.cpp b/test/vector/unsafe.cpp new file mode 100644 index 00000000..7157099c --- /dev/null +++ b/test/vector/unsafe.cpp @@ -0,0 +1,20 @@ +// +// immer: immutable data structures for C++ +// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente +// +// This software is distributed under the Boost Software License, Version 1.0. +// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt +// + +#include +#include + +using unsafe_memory = immer::memory_policy, + immer::no_refcount_policy, + immer::no_lock_policy>; + +template +using test_vector_t = immer::vector; + +#define VECTOR_T test_vector_t +#include "generic.ipp"