Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
ITASimulationScheduler
Commits
536d19b2
Commit
536d19b2
authored
Apr 28, 2020
by
Pascal Palenda
Browse files
Add include guard due to dup name in utils.h - WIP
parent
93fac410
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/all_tests/enum_to_int.cpp
View file @
536d19b2
#ifndef INCLUDE_WATCHER_ITA_SIMULATION_SCHEDULER_UTILS
#define INCLUDE_WATCHER_ITA_SIMULATION_SCHEDULER_UTILS
#include <type_traits>
template
<
typename
Enumeration
>
...
...
@@ -5,4 +8,6 @@ auto as_integer ( Enumeration const value )
->
typename
std
::
underlying_type
<
Enumeration
>::
type
{
return
static_cast
<
typename
std
::
underlying_type
<
Enumeration
>::
type
>
(
value
);
}
\ No newline at end of file
}
#endif // INCLUDE_WATCHER_ITA_SIMULATION_SCHEDULER_UTILS
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment