Disallow copying vptr factories

This commit is contained in:
Kp 2015-08-22 20:43:04 +00:00
parent 80f70fbc34
commit 2833e81ab4

View file

@ -617,6 +617,9 @@ class valptridx<managed_type>::basic_vptr_global_factory
{
using containing_type = valptridx<managed_type>;
public:
basic_vptr_global_factory() = default;
basic_vptr_global_factory(const basic_vptr_global_factory &) = delete;
basic_vptr_global_factory &operator=(const basic_vptr_global_factory &) = delete;
__attribute_warn_unused_result
P operator()(typename P::const_pointer_type p) const
{
@ -649,6 +652,9 @@ class valptridx<managed_type>::basic_ptridx_global_factory
{
using containing_type = valptridx<managed_type>;
public:
basic_ptridx_global_factory() = default;
basic_ptridx_global_factory(const basic_ptridx_global_factory &) = delete;
basic_ptridx_global_factory &operator=(const basic_ptridx_global_factory &) = delete;
__attribute_warn_unused_result
PI operator()(typename PI::index_type i) const
{