From 7af4c5b5c561362cb1135ab504095ae667a9270a Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Fri, 27 Jun 2014 19:16:45 -0700 Subject: This is more reliable --- src/ints/cmp.hpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/ints/cmp.hpp') diff --git a/src/ints/cmp.hpp b/src/ints/cmp.hpp index 8839899..16384e6 100644 --- a/src/ints/cmp.hpp +++ b/src/ints/cmp.hpp @@ -1,5 +1,4 @@ -#ifndef TMWA_INTS_CMP_HPP -#define TMWA_INTS_CMP_HPP +#pragma once // cmp.hpp - comparison related operations // // Copyright © 2014 Ben Longbons @@ -19,17 +18,17 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -# include "fwd.hpp" +#include "fwd.hpp" -# include +#include namespace tmwa { namespace ints { -# pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Wtype-limits" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wtype-limits" template T saturate(const U& v) { @@ -63,10 +62,8 @@ namespace ints return v; } } -# pragma GCC diagnostic pop +#pragma GCC diagnostic pop } // namespace ints using ints::saturate; } // namespace tmwa - -#endif // TMWA_INTS_CMP_HPP -- cgit v1.2.3-70-g09d2