Merge pull request #650 from mocabe/ArrayWrapper1D-conversion
Small fix for ArrayWrapper1D's conversion operators
This commit is contained in:
@@ -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() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user