Make the ttracer non-copyable.

It makes conceptually no sense to have the class copyable.
This commit is contained in:
Mark de Wever 2012-03-10 09:05:23 +00:00
parent 864c53850c
commit ea43b53c7e

View file

@ -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__);