aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2020-12-15 10:36:04 +0100
committerFelix Morgner <felix.morgner@gmail.com>2020-12-15 10:36:04 +0100
commit80802e1ed843c061fe06e1474e192851c215d786 (patch)
tree33afc8df2caacead9305df2ab75ddca1142df4f3
parent4d069aa26c362b49da5a2ded78dc92cde3c6ffaf (diff)
downloadnewtype-80802e1ed843c061fe06e1474e192851c215d786.tar.xz
newtype-80802e1ed843c061fe06e1474e192851c215d786.zip
newtype: rename new_type.hpp to newtype.hpp
-rw-r--r--examples/src/basic_usage.cpp2
-rw-r--r--examples/src/basic_usage_with_read.cpp2
-rw-r--r--examples/src/basic_usage_with_show.cpp2
-rw-r--r--include/newtype/newtype.hpp (renamed from include/newtype/new_type.hpp)8
-rw-r--r--test/src/arithmetic_suite.cpp2
-rw-r--r--test/src/conversion_suite.cpp2
-rw-r--r--test/src/equality_comparison_suite.cpp2
-rw-r--r--test/src/hash_suite.cpp2
-rw-r--r--test/src/io_operators_suite.cpp2
-rw-r--r--test/src/iterable_suite.cpp2
-rw-r--r--test/src/new_type_constructor_suite.cpp2
-rw-r--r--test/src/relational_operators_suite.cpp2
12 files changed, 15 insertions, 15 deletions
diff --git a/examples/src/basic_usage.cpp b/examples/src/basic_usage.cpp
index a2a50cd..35d1d2c 100644
--- a/examples/src/basic_usage.cpp
+++ b/examples/src/basic_usage.cpp
@@ -1,4 +1,4 @@
-#include <newtype/new_type.hpp>
+#include <newtype/newtype.hpp>
#include <iostream>
diff --git a/examples/src/basic_usage_with_read.cpp b/examples/src/basic_usage_with_read.cpp
index 87fcc1a..2dabe2e 100644
--- a/examples/src/basic_usage_with_read.cpp
+++ b/examples/src/basic_usage_with_read.cpp
@@ -1,6 +1,6 @@
#include <newtype/derivable.hpp>
#include <newtype/deriving.hpp>
-#include <newtype/new_type.hpp>
+#include <newtype/newtype.hpp>
#include <iostream>
diff --git a/examples/src/basic_usage_with_show.cpp b/examples/src/basic_usage_with_show.cpp
index 1a83968..4bb68f6 100644
--- a/examples/src/basic_usage_with_show.cpp
+++ b/examples/src/basic_usage_with_show.cpp
@@ -1,6 +1,6 @@
#include <newtype/derivable.hpp>
#include <newtype/deriving.hpp>
-#include <newtype/new_type.hpp>
+#include <newtype/newtype.hpp>
#include <iostream>
diff --git a/include/newtype/new_type.hpp b/include/newtype/newtype.hpp
index 66ff332..e2704f3 100644
--- a/include/newtype/new_type.hpp
+++ b/include/newtype/newtype.hpp
@@ -1,5 +1,5 @@
-#ifndef NEWTYPE_NEW_TYPE_HPP
-#define NEWTYPE_NEW_TYPE_HPP
+#ifndef NEWTYPE_NEWTYPE_HPP
+#define NEWTYPE_NEWTYPE_HPP
#include "newtype/derivable.hpp"
#include "newtype/deriving.hpp"
@@ -154,13 +154,13 @@ namespace nt
}
template<typename NewType = new_type>
- auto constexpr operator-> () noexcept -> std::enable_if_t<NewType::derivation_clause(nt::Indirection), BaseType *>
+ auto constexpr operator->() noexcept -> std::enable_if_t<NewType::derivation_clause(nt::Indirection), BaseType *>
{
return std::addressof(this->m_value);
}
template<typename NewType = new_type>
- auto constexpr operator-> () const noexcept -> std::enable_if_t<NewType::derivation_clause(nt::Indirection), BaseType const *>
+ auto constexpr operator->() const noexcept -> std::enable_if_t<NewType::derivation_clause(nt::Indirection), BaseType const *>
{
return std::addressof(this->m_value);
}
diff --git a/test/src/arithmetic_suite.cpp b/test/src/arithmetic_suite.cpp
index 2e7f1fd..0d8cfa8 100644
--- a/test/src/arithmetic_suite.cpp
+++ b/test/src/arithmetic_suite.cpp
@@ -4,7 +4,7 @@
#include "newtype/derivable.hpp"
#include "newtype/deriving.hpp"
#include "newtype/impl/type_traits_extensions.hpp"
-#include "newtype/new_type.hpp"
+#include "newtype/newtype.hpp"
#include <cute/cute.h>
diff --git a/test/src/conversion_suite.cpp b/test/src/conversion_suite.cpp
index b60a611..cbe2463 100644
--- a/test/src/conversion_suite.cpp
+++ b/test/src/conversion_suite.cpp
@@ -3,7 +3,7 @@
#include "kawaii.hpp"
#include "newtype/derivable.hpp"
#include "newtype/deriving.hpp"
-#include "newtype/new_type.hpp"
+#include "newtype/newtype.hpp"
#include <cute/cute.h>
diff --git a/test/src/equality_comparison_suite.cpp b/test/src/equality_comparison_suite.cpp
index 0789ae8..4e484f4 100644
--- a/test/src/equality_comparison_suite.cpp
+++ b/test/src/equality_comparison_suite.cpp
@@ -3,7 +3,7 @@
#include "kawaii.hpp"
#include "newtype/derivable.hpp"
#include "newtype/deriving.hpp"
-#include "newtype/new_type.hpp"
+#include "newtype/newtype.hpp"
#include <cute/cute.h>
diff --git a/test/src/hash_suite.cpp b/test/src/hash_suite.cpp
index 9ca362c..b482414 100644
--- a/test/src/hash_suite.cpp
+++ b/test/src/hash_suite.cpp
@@ -4,7 +4,7 @@
#include "newtype/derivable.hpp"
#include "newtype/deriving.hpp"
#include "newtype/impl/type_traits_extensions.hpp"
-#include "newtype/new_type.hpp"
+#include "newtype/newtype.hpp"
#include <cute/cute.h>
diff --git a/test/src/io_operators_suite.cpp b/test/src/io_operators_suite.cpp
index 7f19963..4e146a7 100644
--- a/test/src/io_operators_suite.cpp
+++ b/test/src/io_operators_suite.cpp
@@ -3,7 +3,7 @@
#include "kawaii.hpp"
#include "newtype/derivable.hpp"
#include "newtype/deriving.hpp"
-#include "newtype/new_type.hpp"
+#include "newtype/newtype.hpp"
#include <cute/cute.h>
diff --git a/test/src/iterable_suite.cpp b/test/src/iterable_suite.cpp
index 3b46024..add4696 100644
--- a/test/src/iterable_suite.cpp
+++ b/test/src/iterable_suite.cpp
@@ -4,7 +4,7 @@
#include "newtype/derivable.hpp"
#include "newtype/deriving.hpp"
#include "newtype/impl/type_traits_extensions.hpp"
-#include "newtype/new_type.hpp"
+#include "newtype/newtype.hpp"
#include <cute/cute.h>
diff --git a/test/src/new_type_constructor_suite.cpp b/test/src/new_type_constructor_suite.cpp
index 27b7452..fc3e9f6 100644
--- a/test/src/new_type_constructor_suite.cpp
+++ b/test/src/new_type_constructor_suite.cpp
@@ -2,7 +2,7 @@
#include "kawaii.hpp"
#include "newtype/derivable.hpp"
-#include "newtype/new_type.hpp"
+#include "newtype/newtype.hpp"
#include <cute/cute.h>
diff --git a/test/src/relational_operators_suite.cpp b/test/src/relational_operators_suite.cpp
index 31955dd..64fcba0 100644
--- a/test/src/relational_operators_suite.cpp
+++ b/test/src/relational_operators_suite.cpp
@@ -3,7 +3,7 @@
#include "kawaii.hpp"
#include "newtype/derivable.hpp"
#include "newtype/deriving.hpp"
-#include "newtype/new_type.hpp"
+#include "newtype/newtype.hpp"
#include <cute/cute.h>