From 2baee092098ce9035c3da213c1eec25f006eef53 Mon Sep 17 00:00:00 2001 From: Stephane Del Pino <stephane.delpino44@gmail.com> Date: Thu, 17 Oct 2019 11:04:49 +0200 Subject: [PATCH] Add separation comments --- src/utils/PugsTraits.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/PugsTraits.hpp b/src/utils/PugsTraits.hpp index 3846e141e..3184f5b6e 100644 --- a/src/utils/PugsTraits.hpp +++ b/src/utils/PugsTraits.hpp @@ -8,6 +8,8 @@ class TinyVector; template <size_t N, typename T> class TinyMatrix; +// Traits is_trivially_castable + template <typename T> inline constexpr bool is_trivially_castable = std::is_trivial_v<T>; @@ -21,6 +23,8 @@ inline constexpr bool is_trivially_castable<TinyMatrix<N, T>> = is_trivially_cas template <size_t N, typename T> inline constexpr bool is_trivially_castable<const TinyMatrix<N, T>> = is_trivially_castable<T>; +// Traits is_false + template <typename T> inline constexpr bool is_false_v = false; -- GitLab