nocopy: remove deprecated header
This commit is contained in:
parent
8beada1646
commit
7805153e17
@ -405,7 +405,6 @@ list (
|
|||||||
matrix.hpp
|
matrix.hpp
|
||||||
memory/deleter.cpp
|
memory/deleter.cpp
|
||||||
memory/deleter.hpp
|
memory/deleter.hpp
|
||||||
nocopy.hpp
|
|
||||||
parallel/queue.cpp
|
parallel/queue.cpp
|
||||||
parallel/queue.hpp
|
parallel/queue.hpp
|
||||||
parse/time.cpp
|
parse/time.cpp
|
||||||
|
18
log.hpp
18
log.hpp
@ -9,8 +9,6 @@
|
|||||||
#ifndef CRUFT_UTIL_LOG_HPP
|
#ifndef CRUFT_UTIL_LOG_HPP
|
||||||
#define CRUFT_UTIL_LOG_HPP
|
#define CRUFT_UTIL_LOG_HPP
|
||||||
|
|
||||||
#include "nocopy.hpp"
|
|
||||||
|
|
||||||
#include "format.hpp"
|
#include "format.hpp"
|
||||||
|
|
||||||
#include <cruft/util/preprocessor.hpp>
|
#include <cruft/util/preprocessor.hpp>
|
||||||
@ -111,11 +109,17 @@ namespace cruft {
|
|||||||
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
class scoped_logger : public nocopy {
|
class scoped_logger {
|
||||||
public:
|
public:
|
||||||
scoped_logger (level_t, std::string);
|
scoped_logger (level_t, std::string);
|
||||||
~scoped_logger ();
|
~scoped_logger ();
|
||||||
|
|
||||||
|
scoped_logger (scoped_logger const&) = delete;
|
||||||
|
scoped_logger& operator= (scoped_logger const&) = delete;
|
||||||
|
|
||||||
|
scoped_logger (scoped_logger &&) = delete;
|
||||||
|
scoped_logger& operator= (scoped_logger &&) = delete;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
const level_t m_level;
|
const level_t m_level;
|
||||||
const std::string m_message;
|
const std::string m_message;
|
||||||
@ -123,11 +127,17 @@ namespace cruft {
|
|||||||
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
class scoped_timer : public nocopy {
|
class scoped_timer {
|
||||||
public:
|
public:
|
||||||
scoped_timer (level_t, std::string);
|
scoped_timer (level_t, std::string);
|
||||||
~scoped_timer ();
|
~scoped_timer ();
|
||||||
|
|
||||||
|
scoped_timer (scoped_timer const&) = delete;
|
||||||
|
scoped_timer& operator= (scoped_timer const&) = delete;
|
||||||
|
|
||||||
|
scoped_timer (scoped_timer &&) = delete;
|
||||||
|
scoped_timer& operator= (scoped_timer &&) = delete;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const level_t m_level;
|
const level_t m_level;
|
||||||
const std::string m_message;
|
const std::string m_message;
|
||||||
|
27
nocopy.hpp
27
nocopy.hpp
@ -1,27 +0,0 @@
|
|||||||
/*
|
|
||||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
||||||
*
|
|
||||||
* Copyright 2010 Danny Robson <danny@nerdcruft.net>
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __NOCOPY_HPP
|
|
||||||
#define __NOCOPY_HPP
|
|
||||||
|
|
||||||
namespace cruft {
|
|
||||||
class nocopy {
|
|
||||||
protected:
|
|
||||||
nocopy () { ; }
|
|
||||||
~nocopy () { ; }
|
|
||||||
|
|
||||||
private:
|
|
||||||
nocopy (const nocopy & ) = delete;
|
|
||||||
nocopy ( nocopy &&) = delete;
|
|
||||||
|
|
||||||
nocopy& operator= (const nocopy & ) = delete;
|
|
||||||
nocopy& operator= ( nocopy &&) = delete;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
1
pool.hpp
1
pool.hpp
@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "nocopy.hpp"
|
|
||||||
#include "debug/assert.hpp"
|
#include "debug/assert.hpp"
|
||||||
#include "cast.hpp"
|
#include "cast.hpp"
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
#include "types/traits.hpp"
|
#include "types/traits.hpp"
|
||||||
#include "debug/assert.hpp"
|
#include "debug/assert.hpp"
|
||||||
#include "nocopy.hpp"
|
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
Loading…
Reference in New Issue
Block a user