aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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);
}