summaryrefslogtreecommitdiff
path: root/src/range
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-06-27 19:16:45 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-06-27 19:33:42 -0700
commit7af4c5b5c561362cb1135ab504095ae667a9270a (patch)
tree49ffd3008d7634ba36f3951493a68e928407ce89 /src/range
parent8d7f1dadeeb1dc1609b72de5a4ee3a5247b0e9e6 (diff)
downloadtmwa-7af4c5b5c561362cb1135ab504095ae667a9270a.tar.gz
tmwa-7af4c5b5c561362cb1135ab504095ae667a9270a.tar.bz2
tmwa-7af4c5b5c561362cb1135ab504095ae667a9270a.tar.xz
tmwa-7af4c5b5c561362cb1135ab504095ae667a9270a.zip
This is more reliable
Diffstat (limited to 'src/range')
-rw-r--r--src/range/fwd.hpp7
-rw-r--r--src/range/slice.hpp15
2 files changed, 8 insertions, 14 deletions
diff --git a/src/range/fwd.hpp b/src/range/fwd.hpp
index 65fd010..646eadb 100644
--- a/src/range/fwd.hpp
+++ b/src/range/fwd.hpp
@@ -1,5 +1,4 @@
-#ifndef TMWA_RANGE_FWD_HPP
-#define TMWA_RANGE_FWD_HPP
+#pragma once
// range/fwd.hpp - list of type names for range lib
//
// Copyright © 2014 Ben Longbons <b.r.longbons@gmail.com>
@@ -19,7 +18,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-# include "../sanity.hpp"
+#include "../sanity.hpp"
namespace tmwa
@@ -28,5 +27,3 @@ namespace tmwa
template<class T>
class Slice;
} // namespace tmwa
-
-#endif // TMWA_RANGE_FWD_HPP
diff --git a/src/range/slice.hpp b/src/range/slice.hpp
index 8cd9203..da52e5f 100644
--- a/src/range/slice.hpp
+++ b/src/range/slice.hpp
@@ -1,5 +1,4 @@
-#ifndef TMWA_GENERIC_SLICE_HPP
-#define TMWA_GENERIC_SLICE_HPP
+#pragma once
// slice.hpp - a borrowed array
//
// Copyright © 2011-2014 Ben Longbons <b.r.longbons@gmail.com>
@@ -19,12 +18,12 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-# include "fwd.hpp"
+#include "fwd.hpp"
-# include <cstddef>
+#include <cstddef>
-# include <type_traits>
-# include <vector>
+#include <type_traits>
+#include <vector>
namespace tmwa
@@ -72,6 +71,4 @@ public:
};
} // namespace tmwa
-# include "slice.tcc"
-
-#endif // TMWA_GENERIC_SLICE_HPP
+#include "slice.tcc"