aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2019-12-26 16:50:08 +0100
committerFelix Morgner <felix.morgner@gmail.com>2019-12-26 16:50:08 +0100
commit99a77dd3122282f9509e7a4ec8bfd5b14b73e929 (patch)
treee65be356e2ef4250ac1e66626324cab8d7555f39 /include
parent2184a7d0920fbf6208edcca4c82bd273ec37749a (diff)
downloadnewtype-99a77dd3122282f9509e7a4ec8bfd5b14b73e929.tar.xz
newtype-99a77dd3122282f9509e7a4ec8bfd5b14b73e929.zip
doc: install dependencies before building docs
Diffstat (limited to 'include')
-rw-r--r--include/newtype/new_type.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/newtype/new_type.hpp b/include/newtype/new_type.hpp
index 4d8ad66..0dc0ff6 100644
--- a/include/newtype/new_type.hpp
+++ b/include/newtype/new_type.hpp
@@ -102,6 +102,8 @@ namespace nt
auto constexpr static derivations = DerivationClause;
public:
+ using impl::new_type_storage<BaseType, TagType>::decay;
+
/**
* Convert this instance into the equivalent base type value
*
@@ -111,7 +113,7 @@ namespace nt
template<typename NewType = new_type, std::enable_if_t<NewType::derivations(nt::ImplicitConversion)> * = nullptr>
constexpr operator base_type() const noexcept(std::is_nothrow_copy_constructible_v<base_type>)
{
- return this->decay();
+ return decay();
}
/**
@@ -123,7 +125,7 @@ namespace nt
template<typename NewType = new_type, std::enable_if_t<!NewType::derivations(nt::ImplicitConversion)> * = nullptr>
explicit constexpr operator base_type() const noexcept(std::is_nothrow_copy_constructible_v<base_type>)
{
- return this->decay();
+ return decay();
}
};