Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs-feliks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Feliks Kiszkurno
ogs-feliks
Commits
4fcc1f94
Commit
4fcc1f94
authored
9 months ago
by
Christoph Lehmann
Browse files
Options
Downloads
Patches
Plain Diff
[BL] Provide type aliases for better compiler error messages
parent
c648ae21
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
BaseLib/BoostMP11Utils.h
+30
-0
30 additions, 0 deletions
BaseLib/BoostMP11Utils.h
with
30 additions
and
0 deletions
BaseLib/BoostMP11Utils.h
0 → 100644
+
30
−
0
View file @
4fcc1f94
/**
* \file
* \copyright
* Copyright (c) 2012-2024, 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
#include
<boost/mp11.hpp>
namespace
boost
::
mp11
{
// Alias to be used together with static_assert to improve possible compile
// error messages.
template
<
typename
List
,
typename
Elem
>
constexpr
bool
mp_contains_v
=
mp_contains
<
List
,
Elem
>::
value
;
// Alias to be used together with static_assert to improve possible compile
// error messages
template
<
typename
Set
>
constexpr
bool
mp_is_list_v
=
mp_is_list
<
Set
>::
value
;
// Alias to be used together with static_assert to improve possible compile
// error messages
template
<
typename
Set
>
constexpr
bool
mp_is_set_v
=
mp_is_set
<
Set
>::
value
;
}
// namespace boost::mp11
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment