Disable CTAD on ArrayProxy's constructors (#405)

* Disable CTAD on ArrayProxy's reference constructor

* Disable CTAD on ArrayProxy's initializer_list ctor
This commit is contained in:
mocabe
2019-10-30 00:00:03 +09:00
committed by Andreas Süßenbach
parent c06a3300f6
commit 68b11f1e90
2 changed files with 4 additions and 4 deletions

View File

@@ -168,7 +168,7 @@ namespace VULKAN_HPP_NAMESPACE
, m_ptr(nullptr)
{}
ArrayProxy(T & ptr) VULKAN_HPP_NOEXCEPT
ArrayProxy(typename std::remove_reference<T>::type & ptr) VULKAN_HPP_NOEXCEPT
: m_count(1)
, m_ptr(&ptr)
{}
@@ -202,7 +202,7 @@ namespace VULKAN_HPP_NAMESPACE
, m_ptr(data.data())
{}
ArrayProxy(std::initializer_list<T> const& data) VULKAN_HPP_NOEXCEPT
ArrayProxy(std::initializer_list<typename std::remove_reference<T>::type> const& data) VULKAN_HPP_NOEXCEPT
: m_count(static_cast<uint32_t>(data.end() - data.begin()))
, m_ptr(data.begin())
{}