From 80dafa8edffd1177e20f11c7a2806ffb82357a3a Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 24 Feb 2020 07:14:02 +0100 Subject: [PATCH] math: clean up the Real class. --- {legacy => include}/lol/math/real.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename {legacy => include}/lol/math/real.h (99%) diff --git a/legacy/lol/math/real.h b/include/lol/math/real.h similarity index 99% rename from legacy/lol/math/real.h rename to include/lol/math/real.h index 47ecb2de..d952bf89 100644 --- a/legacy/lol/math/real.h +++ b/include/lol/math/real.h @@ -1,7 +1,7 @@ // // Lol Engine // -// Copyright © 2010—2019 Sam Hocevar +// Copyright © 2010—2020 Sam Hocevar // // Lol Engine is free software. It comes without any warranty, to // the extent permitted by applicable law. You can redistribute it @@ -17,8 +17,6 @@ // -------------- // -#include - #include #include #include @@ -30,6 +28,9 @@ namespace lol #undef min #undef max +template class Real; +typedef Real real; + /* * The base class for reals. The only real reason for making this a template * class is so we can have implicit constructors ("real x = 1" works) but