once only header for hpp files

This commit is contained in:
Christopher Lackner 2018-12-07 11:41:56 +01:00
parent b064b9bbfd
commit 32bc3f826e
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#ifndef NGS_TYPE_TRAITS_HPP
#define NGS_TYPE_TRAITS_HPP
namespace ngcore namespace ngcore
{ {
@ -6,3 +7,5 @@ namespace ngcore
template<bool ... vals> template<bool ... vals>
constexpr bool all_of_tmpl = std::is_same<_BoolArray<vals...>, _BoolArray<(vals || true)...>>::value; constexpr bool all_of_tmpl = std::is_same<_BoolArray<vals...>, _BoolArray<(vals || true)...>>::value;
} }
#endif // NGS_TYPE_TRAITS_HPP

View File

@ -1,3 +1,5 @@
#ifndef NGS_VERSION_HPP
#define NGS_VERSION_HPP
namespace ngcore namespace ngcore
{ {
@ -82,3 +84,4 @@ namespace ngcore
} }
}; };
} }
#endif // NGS_VERSION_HPP