Revision 7750d9ae8f6e765d25f1cbee859fcf2642a9d742 authored by Lars Bilke on 30 January 2023, 12:41:19 UTC, committed by Lars Bilke on 31 January 2023, 07:19:50 UTC
1 parent cd21ebf
Utils.h
/**
* \file
* \copyright
* Copyright (c) 2012-2023, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
// Used to distinguish function overloads
template <typename T>
struct Type
{
};
// helper type for converting lists of types
template <typename InputList, template <typename...> typename NewListType>
struct ConvertListType;
template <template <typename...> typename OldListType, typename... Ts,
template <typename...> typename NewListType>
struct ConvertListType<OldListType<Ts...>, NewListType>
{
using type = NewListType<Ts...>;
};
template <typename InputList, template <typename...> typename NewListType>
using ConvertListType_t =
typename ConvertListType<InputList, NewListType>::type;
#if __cpp_concepts >= 201907L && __cpp_lib_concepts >= 202002L
#define OGS_HAVE_CONCEPTS
#define OGS_USE_CONCEPT(name) name
#else
#define OGS_USE_CONCEPT(name) typename
#endif
Computing file changes ...