@@ -93,11 +93,11 @@ class CAssetConverter : public core::IReferenceCounted
93
93
{
94
94
#define PATCH_IMPL_BOILERPLATE (ASSET_TYPE ) using this_t = patch_impl_t <ASSET_TYPE>; \
95
95
public: \
96
- inline patch_impl_t () = default; \
97
- inline patch_impl_t (const this_t & other) = default; \
98
- inline patch_impl_t (this_t && other) = default; \
99
- inline this_t & operator =(const this_t & other) = default ; \
100
- inline this_t & operator =(this_t && other) = default ; \
96
+ constexpr inline patch_impl_t () = default; \
97
+ constexpr inline patch_impl_t (const this_t & other) = default; \
98
+ constexpr inline patch_impl_t (this_t && other) = default; \
99
+ constexpr inline this_t & operator =(const this_t & other) = default ; \
100
+ constexpr inline this_t & operator =(this_t && other) = default ; \
101
101
patch_impl_t (const ASSET_TYPE* asset); \
102
102
bool valid (const ILogicalDevice* device)
103
103
@@ -335,11 +335,11 @@ class CAssetConverter : public core::IReferenceCounted
335
335
using this_t = patch_impl_t <asset::ICPUImageView>;
336
336
337
337
public:
338
- inline patch_impl_t () = default;
339
- inline patch_impl_t (const this_t & other) = default;
340
- inline patch_impl_t (this_t && other) = default;
341
- inline this_t & operator =(const this_t & other) = default ;
342
- inline this_t & operator =(this_t && other) = default ;
338
+ constexpr inline patch_impl_t () = default;
339
+ constexpr inline patch_impl_t (const this_t & other) = default;
340
+ constexpr inline patch_impl_t (this_t && other) = default;
341
+ constexpr inline this_t & operator =(const this_t & other) = default ;
342
+ constexpr inline this_t & operator =(this_t && other) = default ;
343
343
344
344
using usage_flags_t = IGPUImage::E_USAGE_FLAGS;
345
345
// slightly weird constructor because it deduces the metadata from subusages, so need the subusages right away, not patched later
@@ -450,12 +450,12 @@ class CAssetConverter : public core::IReferenceCounted
450
450
451
451
// forwarding
452
452
using base_t ::base_t ;
453
- inline patch_t (const this_t & other) : base_t(other) {}
454
- inline patch_t (this_t && other) : base_t(std::move(other)) {}
455
- inline patch_t (base_t && other) : base_t(std::move(other)) {}
453
+ constexpr inline patch_t (const this_t & other) : base_t(other) {}
454
+ constexpr inline patch_t (this_t && other) : base_t(std::move(other)) {}
455
+ constexpr inline patch_t (base_t && other) : base_t(std::move(other)) {}
456
456
457
- inline this_t & operator =(const this_t & other) = default ;
458
- inline this_t & operator =(this_t && other) = default ;
457
+ constexpr inline this_t & operator =(const this_t & other) = default ;
458
+ constexpr inline this_t & operator =(this_t && other) = default ;
459
459
460
460
// The assumption is we'll only ever be combining valid patches together.
461
461
// Returns: whether the combine op was a success, DOESN'T MEAN the result is VALID!
0 commit comments