Merge pull request #650 from mocabe/ArrayWrapper1D-conversion

Small fix for ArrayWrapper1D's conversion operators
This commit is contained in:
Andreas Süßenbach
2020-07-02 09:20:02 +02:00
committed by GitHub
3 changed files with 5 additions and 5 deletions

View File

@@ -379,14 +379,14 @@ namespace VULKAN_HPP_NAMESPACE
}
template <typename B = T, typename std::enable_if<std::is_same<B, char>::value, int>::type = 0>
operator std::string const() const VULKAN_HPP_NOEXCEPT
operator std::string() const
{
return std::string( this->data() );
}
#if 17 <= VULKAN_HPP_CPP_VERSION
template <typename B = T, typename std::enable_if<std::is_same<B, char>::value, int>::type = 0>
operator std::string_view const() const VULKAN_HPP_NOEXCEPT
operator std::string_view() const
{
return std::string_view( this->data() );
}