Make the ttracer non-copyable.
It makes conceptually no sense to have the class copyable.
This commit is contained in:
parent
864c53850c
commit
ea43b53c7e
1 changed files with 4 additions and 0 deletions
|
@ -21,11 +21,14 @@
|
|||
#ifndef TRACER_HPP_INCLUDED
|
||||
#define TRACER_HPP_INCLUDED
|
||||
|
||||
#include <boost/noncopyable.hpp>
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
/** Helper structure for gathering the tracing statistics. */
|
||||
struct ttracer
|
||||
: private boost::noncopyable
|
||||
{
|
||||
/**
|
||||
* Helper structure to print the tracing statistics.
|
||||
|
@ -36,6 +39,7 @@ struct ttracer
|
|||
* the scope is left. (This makes it easier to write the tracing macros.)
|
||||
*/
|
||||
struct tprint
|
||||
: private boost::noncopyable
|
||||
{
|
||||
explicit tprint(const ttracer* const tracer__);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue