mirror of
https://github.com/KhronosGroup/Vulkan-Hpp
synced 2024-11-25 13:30:04 +00:00
Merge pull request #650 from mocabe/ArrayWrapper1D-conversion
Small fix for ArrayWrapper1D's conversion operators
This commit is contained in:
commit
5da023d17a
@ -6970,14 +6970,14 @@ int main( int argc, char ** argv )
|
||||
}
|
||||
|
||||
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() );
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ int main( int /*argc*/, char ** /*argv*/ )
|
||||
for ( auto const & layerProperty : layerProperties )
|
||||
{
|
||||
std::vector<vk::ExtensionProperties> extensionProperties =
|
||||
vk::enumerateInstanceExtensionProperties( std::string( layerProperty.layerName ) );
|
||||
vk::enumerateInstanceExtensionProperties( vk::Optional<const std::string>( layerProperty.layerName ) );
|
||||
propertyData.push_back( PropertyData( layerProperty, extensionProperties ) );
|
||||
}
|
||||
|
||||
|
@ -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() );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user