object: take constref to simplify rval passing

This commit is contained in:
Danny Robson 2017-09-13 16:51:17 +10:00
parent 0ccbfc1cbe
commit e87ad28599

View File

@ -31,7 +31,7 @@ namespace cruft::vk {
struct object {
using native_type = native_t<SelfT>;
object (native_t<SelfT> _native):
object (const native_t<SelfT> &_native):
m_native (_native)
{
CHECK_NEQ (m_native, VK_NULL_HANDLE);