Revision 79783351d5bf44294ebef69ac8d7b5e4fa228966 authored by Lars Bilke on 12 April 2023, 12:03:57 UTC, committed by Lars Bilke on 14 April 2023, 06:00:47 UTC
1 parent a8efa86
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
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...