// (C) Copyright Jonathan Turkanis 2004
// 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.)
// Tests the 'cant_move_from_const' machinery.
// This test should fail to compile for both static_move_ptr and
// dynamic_move_ptr.
#include "./detail/move_ptr.hpp"
#include "./detail/hierarchy_non_virtual_dtor.hpp"
#include "./detail/source_sink.hpp"
using namespace boost::move_ptrs::test;
void f(const BOOST_MOVE_PTR ptr)
{
BOOST_MOVE_PTR ptr2 = ptr;
}
int main()
{
f(base_source());
}