Prevent move and copy of ScopedZone.

This commit is contained in:
Bartosz Taudul 2020-09-23 17:39:53 +02:00
parent 9f00bde629
commit 24f25751ce

View File

@ -16,6 +16,11 @@ namespace tracy
class ScopedZone
{
public:
ScopedZone( const ScopedZone& ) = delete;
ScopedZone( ScopedZone&& ) = delete;
ScopedZone& operator=( const ScopedZone& ) = delete;
ScopedZone& operator=( ScopedZone&& ) = delete;
tracy_force_inline ScopedZone( const SourceLocationData* srcloc, bool is_active = true )
#ifdef TRACY_ON_DEMAND
: m_active( is_active && GetProfiler().IsConnected() )