Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:02:50

0001 
0002 //              Copyright Catch2 Authors
0003 // Distributed under the Boost Software License, Version 1.0.
0004 //   (See accompanying file LICENSE.txt or copy at
0005 //        https://www.boost.org/LICENSE_1_0.txt)
0006 
0007 // SPDX-License-Identifier: BSL-1.0
0008 #ifndef CATCH_NONCOPYABLE_HPP_INCLUDED
0009 #define CATCH_NONCOPYABLE_HPP_INCLUDED
0010 
0011 namespace Catch {
0012     namespace Detail {
0013 
0014         //! Deriving classes become noncopyable and nonmovable
0015         class NonCopyable {
0016             NonCopyable( NonCopyable const& ) = delete;
0017             NonCopyable( NonCopyable&& ) = delete;
0018             NonCopyable& operator=( NonCopyable const& ) = delete;
0019             NonCopyable& operator=( NonCopyable&& ) = delete;
0020 
0021         protected:
0022             NonCopyable() noexcept = default;
0023         };
0024 
0025     } // namespace Detail
0026 } // namespace Catch
0027 
0028 #endif // CATCH_NONCOPYABLE_HPP_INCLUDED