boost_scope 0.1.0

Boost C++ library boost_scope packaged using Zanbil
Documentation
/*
 * Distributed under the Boost Software License, Version 1.0.
 * (See accompanying file LICENSE_1_0.txt or copy at
 * https://www.boost.org/LICENSE_1_0.txt)
 *
 * Copyright (c) 2023 Andrey Semashev
 */
/*!
 * \file   scope_exit_noncopyable.cpp
 * \author Andrey Semashev
 *
 * \brief  This file tests that \c scope_exit is noncopyable.
 */

#include <boost/scope/scope_exit.hpp>
#include "function_types.hpp"

int main()
{
    int n = 0;
    boost::scope::scope_exit< normal_func > guard1{ normal_func(n) };
    boost::scope::scope_exit< normal_func > guard2 = guard1;

    return 0;
}