mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-11 07:18:11 -05:00
Implement sequence matcher and parser magic
This commit is contained in:
@ -16,4 +16,22 @@
|
||||
#else
|
||||
#define _NODISCARD
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
template <class T>
|
||||
struct Movable
|
||||
{
|
||||
mutable T m_val;
|
||||
|
||||
// ReSharper disable once CppNonExplicitConversionOperator
|
||||
operator T() const &&
|
||||
{
|
||||
return std::move(m_val);
|
||||
}
|
||||
|
||||
// ReSharper disable once CppNonExplicitConvertingConstructor
|
||||
Movable(T&& in)
|
||||
: m_val(std::move(in))
|
||||
{
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user