Skip to content

Commit 844495c

Browse files
committed
added standard check
1 parent bcedc1f commit 844495c

File tree

9 files changed

+41
-1
lines changed

9 files changed

+41
-1
lines changed

include/mt_queue/include/ut/mt_queue/mt_queue.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#ifndef UT_MT_QUEUE_HPP
22
#define UT_MT_QUEUE_HPP
33

4+
#if __cplusplus < 202'002L
5+
# error this file has to be compiled with at least C++20
6+
#endif
7+
48
#include <condition_variable>
59
#include <deque>
610
#include <mutex>

include/ptr_containers/include/ut/ptr_containers/container_base.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#ifndef CONTAINER_BASE_HPP
22
#define CONTAINER_BASE_HPP
33

4+
#if __cplusplus < 202'002L
5+
# error this file has to be compiled with at least C++20
6+
#endif
7+
48
#include "template_helpers.hpp"
59

610
#ifndef assert
@@ -171,7 +175,7 @@ namespace detail {
171175
}
172176

173177
template<typename T>
174-
struct IsDerivedFromContainerBase : decltype(detail::derivedFromContainerBase(std::declval<T *>())) { };
178+
struct IsDerivedFromContainerBase : decltype(detail::derivedFromContainerBase(std::declval<T *>())) {};
175179

176180
template<typename T>
177181
inline constexpr bool IsDerivedFromContainerBaseV = IsDerivedFromContainerBase<T>::value;

include/ptr_containers/include/ut/ptr_containers/ownptrvec.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#ifndef OWNPTRVEC_HPP
22
#define OWNPTRVEC_HPP
33

4+
#if __cplusplus < 202'002L
5+
# error this file has to be compiled with at least C++20
6+
#endif
7+
48
#include "container_base.hpp"
59
#include "ptrvecview.hpp"
610
#include "template_helpers.hpp"

include/ptr_containers/include/ut/ptr_containers/ptrvecview.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#ifndef PTRVECVIEW_HPP
22
#define PTRVECVIEW_HPP
33

4+
#if __cplusplus < 202'002L
5+
# error this file has to be compiled with at least C++20
6+
#endif
7+
48
#include "container_base.hpp"
59

610
#define BASE \

include/ptr_containers/include/ut/ptr_containers/template_helpers.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#ifndef CONCEPTS_HPP
22
#define CONCEPTS_HPP
3+
4+
#if __cplusplus < 202'002L
5+
# error this file has to be compiled with at least C++20
6+
#endif
7+
38
#include <concepts>
49
#include <memory>
510

include/ptr_containers/include/ut/ptr_containers/valueptr.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#ifndef VALUEPTR_HPP
22
#define VALUEPTR_HPP
3+
4+
#if __cplusplus < 202'002L
5+
# error this file has to be compiled with at least C++20
6+
#endif
7+
38
#include "template_helpers.hpp"
49

510
#include <memory>

include/resource/include/ut/resource/optionalof.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#ifndef UT_OPTIONALOF_HPP
22
#define UT_OPTIONALOF_HPP
3+
4+
#if __cplusplus < 202'002L
5+
# error this file has to be compiled with at least C++20
6+
#endif
7+
38
#include <optional>
49
#include <type_traits>
510

include/resource/include/ut/resource/resource.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#ifndef UT_RESOURCE_HPP
22
#define UT_RESOURCE_HPP
3+
4+
#if __cplusplus < 202'002L
5+
# error this file has to be compiled with at least C++20
6+
#endif
7+
38
#include "optionalof.hpp"
49

510
#include <type_traits>

include/static_string/include/ut/static_string/static_string.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#ifndef UT_STATIC_STRING_HPP
22
#define UT_STATIC_STRING_HPP
33

4+
#if __cplusplus < 202002L
5+
#error this file has to be compiled with at least C++20
6+
#endif
7+
48
/**Usage:
59
* std >= c++20 (c++23)
610
* // typedef using `char`

0 commit comments

Comments
 (0)