aboutsummaryrefslogtreecommitdiff
path: root/include
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 /include
parent4d069aa26c362b49da5a2ded78dc92cde3c6ffaf (diff)
downloadnewtype-80802e1ed843c061fe06e1474e192851c215d786.tar.xz
newtype-80802e1ed843c061fe06e1474e192851c215d786.zip
newtype: rename new_type.hpp to newtype.hpp
Diffstat (limited to 'include')
-rw-r--r--include/newtype/newtype.hpp (renamed from include/newtype/new_type.hpp)8
1 files changed, 4 insertions, 4 deletions
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);
}