diff --git a/include/fallback/seq.hpp b/include/fallback/seq.hpp index 3346588c..58dcf899 100644 --- a/include/fallback/seq.hpp +++ b/include/fallback/seq.hpp @@ -13,8 +13,9 @@ // http://www.gnu.org/licenses/ // //****************************************************************************// +#ifndef HPCOMBI_FALLBACK_SEQ_HPP_INCLUDED +#define HPCOMBI_FALLBACK_SEQ_HPP_INCLUDED -#if __cplusplus <= 201103L namespace bwcompat_details { // Copy pasted from sources @@ -80,4 +81,5 @@ namespace std { using index_sequence_for = make_index_sequence; } // namespace std -#endif + +#endif // HPCOMBI_FALLBACK_SEQ_HPP_INCLUDED diff --git a/include/hpcombi.hpp b/include/hpcombi.hpp new file mode 100644 index 00000000..91f1f51d --- /dev/null +++ b/include/hpcombi.hpp @@ -0,0 +1,21 @@ +//****************************************************************************// +// Copyright (C) 2016 Florent Hivert , // +// // +// Distributed under the terms of the GNU General Public License (GPL) // +// // +// This code is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // +// General Public License for more details. // +// // +// The full text of the GPL is available at: // +// // +// http://www.gnu.org/licenses/ // +//****************************************************************************// + +#ifndef HPCOMBI_HPCOMBI_HPP_INCLUDED +#define HPCOMBI_HPCOMBI_HPP_INCLUDED + +#include "perm16" + +#define HPCOMBI_HPCOMBI_HPP_INCLUDED diff --git a/include/perm16.hpp b/include/perm16.hpp index c6924073..4f2b3e64 100644 --- a/include/perm16.hpp +++ b/include/perm16.hpp @@ -22,11 +22,13 @@ #include // less<> #include #include -#include "fallback/seq.hpp" - #include "HPCombi-config.h" +#if __cplusplus <= 201103L +#include "fallback/seq.hpp" +#endif + #ifdef HPCOMBI_CONSTEXPR_FUN_ARGS #define HPCOMBI_CONSTEXPR constexpr #define HPCOMBI_CONSTEXPR_CONSTRUCTOR constexpr @@ -35,7 +37,6 @@ #define HPCOMBI_CONSTEXPR_CONSTRUCTOR #endif - namespace HPCombi { /// SIMD vector of 16 unsigned bytes