Sha256: fcfdbe6ea4262baac42c3e6bb61c7a848c775a72cc4077e9251aeaba54c09a65

Contents?: true

Size: 1.35 KB

Versions: 19

Compression:

Stored size: 1.35 KB

Contents

// Copyright (C) 2012 Vicente J. Botet Escriba
//
//  Distributed under the Boost Software License, Version 1.0. (See accompanying
//  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

#ifndef BOOST_THREAD_DETAIL_DELETE_HPP
#define BOOST_THREAD_DETAIL_DELETE_HPP

#include <boost/config.hpp>

/**
 * BOOST_THREAD_DELETE_COPY_CTOR deletes the copy constructor when the compiler supports it or
 * makes it private.
 *
 * BOOST_THREAD_DELETE_COPY_ASSIGN deletes the copy assignment when the compiler supports it or
 * makes it private.
 */
#ifndef BOOST_NO_CXX11_DELETED_FUNCTIONS
#define BOOST_THREAD_DELETE_COPY_CTOR(CLASS) \
      CLASS(CLASS const&) = delete; \

#define BOOST_THREAD_DELETE_COPY_ASSIGN(CLASS) \
      CLASS& operator=(CLASS const&) = delete;

#else // BOOST_NO_CXX11_DELETED_FUNCTIONS
#define BOOST_THREAD_DELETE_COPY_CTOR(CLASS) \
    private: \
      CLASS(CLASS&); \
    public:

#define BOOST_THREAD_DELETE_COPY_ASSIGN(CLASS) \
    private: \
      CLASS& operator=(CLASS&); \
    public:
#endif // BOOST_NO_CXX11_DELETED_FUNCTIONS

/**
 * BOOST_THREAD_NO_COPYABLE deletes the copy constructor and assignment when the compiler supports it or
 * makes them private.
 */
#define BOOST_THREAD_NO_COPYABLE(CLASS) \
    BOOST_THREAD_DELETE_COPY_CTOR(CLASS) \
    BOOST_THREAD_DELETE_COPY_ASSIGN(CLASS)

#endif // BOOST_THREAD_DETAIL_DELETE_HPP

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
passenger-4.0.20 ext/boost/thread/detail/delete.hpp
passenger-4.0.19 ext/boost/thread/detail/delete.hpp
passenger-4.0.18 ext/boost/thread/detail/delete.hpp
passenger-4.0.17 ext/boost/thread/detail/delete.hpp
passenger-4.0.16 ext/boost/thread/detail/delete.hpp
passenger-4.0.14 ext/boost/thread/detail/delete.hpp
passenger-4.0.13 ext/boost/thread/detail/delete.hpp
passenger-4.0.10 ext/boost/thread/detail/delete.hpp
passenger-4.0.8 ext/boost/thread/detail/delete.hpp
passenger-4.0.7 ext/boost/thread/detail/delete.hpp
passenger-4.0.6 ext/boost/thread/detail/delete.hpp
passenger-4.0.5 ext/boost/thread/detail/delete.hpp
passenger-4.0.4 ext/boost/thread/detail/delete.hpp
passenger-4.0.3 ext/boost/thread/detail/delete.hpp
passenger-4.0.2 ext/boost/thread/detail/delete.hpp
passenger-4.0.1 ext/boost/thread/detail/delete.hpp
passenger-4.0.0.rc6 ext/boost/thread/detail/delete.hpp
passenger-4.0.0.rc4 ext/boost/thread/detail/delete.hpp
passenger-3.9.2.beta ext/boost/thread/detail/delete.hpp