/* * Created by Jozef on 12/11/2018. * Copyright 2017 Two Blue Cubes Ltd. All rights reserved. * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef TWOBLUECUBES_CATCH_TYPE_TRAITS_HPP_INCLUDED #define TWOBLUECUBES_CATCH_TYPE_TRAITS_HPP_INCLUDED #include namespace Catch{ #ifdef CATCH_CPP17_OR_GREATER template inline constexpr auto is_unique = std::true_type{}; template inline constexpr auto is_unique = std::bool_constant< (!std::is_same_v && ...) && is_unique >{}; #else template struct is_unique : std::true_type{}; template struct is_unique : std::integral_constant ::value && is_unique::value && is_unique::value >{}; #endif } #endif // TWOBLUECUBES_CATCH_TYPE_TRAITS_HPP_INCLUDED