aboutsummaryrefslogtreecommitdiff
path: root/cpp02/ex02/Fixed.hpp
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-11-10 12:01:44 +0100
committerCharles Cabergs <me@cacharle.xyz>2020-11-10 12:01:44 +0100
commit18ca1fc67ccc7bf176287f7b2908a33a597ec67a (patch)
tree930e1604156d6b8957d8c01786a18f670a202bc3 /cpp02/ex02/Fixed.hpp
parent9dd7a48967f99793b818f7362ac8e95717186774 (diff)
downloadpiscine_cpp-18ca1fc67ccc7bf176287f7b2908a33a597ec67a.tar.gz
piscine_cpp-18ca1fc67ccc7bf176287f7b2908a33a597ec67a.tar.bz2
piscine_cpp-18ca1fc67ccc7bf176287f7b2908a33a597ec67a.zip
Added more tests for cpp02/02
Diffstat (limited to 'cpp02/ex02/Fixed.hpp')
-rw-r--r--cpp02/ex02/Fixed.hpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/cpp02/ex02/Fixed.hpp b/cpp02/ex02/Fixed.hpp
index d839260..fe63381 100644
--- a/cpp02/ex02/Fixed.hpp
+++ b/cpp02/ex02/Fixed.hpp
@@ -6,7 +6,7 @@
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/13 11:40:49 by charles #+# #+# */
-/* Updated: 2020/10/19 12:41:46 by cacharle ### ########.fr */
+/* Updated: 2020/11/10 11:06:40 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -55,15 +55,11 @@ public:
static const Fixed& max(Fixed const& a, Fixed const& b);
static const Fixed& min(Fixed const& a, Fixed const& b);
- static int getFractionalBits();
-
private:
- int m_value;
+ int m_value;
static int const m_fractionalBits = 8;
};
std::ostream& operator<<(std::ostream& out, Fixed const& f);
-
-
#endif