diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2019-12-26 16:50:08 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2019-12-26 16:50:08 +0100 |
| commit | 99a77dd3122282f9509e7a4ec8bfd5b14b73e929 (patch) | |
| tree | e65be356e2ef4250ac1e66626324cab8d7555f39 /include | |
| parent | 2184a7d0920fbf6208edcca4c82bd273ec37749a (diff) | |
| download | newtype-99a77dd3122282f9509e7a4ec8bfd5b14b73e929.tar.xz newtype-99a77dd3122282f9509e7a4ec8bfd5b14b73e929.zip | |
doc: install dependencies before building docs
Diffstat (limited to 'include')
| -rw-r--r-- | include/newtype/new_type.hpp | 6 |
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(); } }; |
