|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r65067 - sandbox/chrono/boost/chrono
From: vicente.botet_at_[hidden]
Date: 2010-08-28 03:59:36
Author: viboes
Date: 2010-08-28 03:59:30 EDT (Sat, 28 Aug 2010)
New Revision: 65067
URL: http://svn.boost.org/trac/boost/changeset/65067
Log:
make non-copyable
suppress warning 4251
Text files modified:
sandbox/chrono/boost/chrono/process_times.hpp | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
Modified: sandbox/chrono/boost/chrono/process_times.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/process_times.hpp (original)
+++ sandbox/chrono/boost/chrono/process_times.hpp 2010-08-28 03:59:30 EDT (Sat, 28 Aug 2010)
@@ -9,7 +9,7 @@
// See http://www.boost.org/libs/system for documentation.
#ifndef BOOST_PROCESS_TIMES_HPP
-#define BOOST_PROCESS_TIMES_HPP
+#define BOOST_PROCESS_TIMES_HPP
#include <boost/chrono/chrono.hpp>
#include <boost/system/error_code.hpp>
@@ -99,6 +99,9 @@
protected:
process_times m_start;
+ private:
+ process_timer(const process_timer&); // = delete;
+ process_timer& operator=(const process_timer&); // = delete;
};
//--------------------------------------------------------------------------------------//
@@ -161,11 +164,21 @@
private:
int m_places;
std::ostream & m_os;
+
+#if defined _MSC_VER
+#pragma warning(push)
+#pragma warning(disable:4251)
+#endif
std::string m_format;
+#if defined _MSC_VER
+#pragma warning(pop)
+#endif
bool m_reported;
static std::ostream & m_cout();
static const int m_default_places = 3;
+ run_timer(const run_timer&); // = delete;
+ run_timer& operator=(const run_timer&); // = delete;
};
} // namespace chrono
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk