Skip to content

Commit

Permalink
Remove obsolete HPX_DELETE_* config macros
Browse files Browse the repository at this point in the history
  • Loading branch information
K-ballo committed May 27, 2017
1 parent b92bfed commit 51fa433
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 43 deletions.
3 changes: 1 addition & 2 deletions hpx/compute/cuda/detail/launch.hpp
Expand Up @@ -61,8 +61,7 @@ namespace hpx { namespace compute { namespace cuda { namespace detail
, args_(std::move(rhs.args_))
{}

HPX_DELETE_COPY_ASSIGN(closure);
HPX_DELETE_MOVE_ASSIGN(closure);
closure& operator=(closure const&) = delete;

HPX_DEVICE void operator()()
{
Expand Down
24 changes: 4 additions & 20 deletions hpx/config/emulate_deleted.hpp
Expand Up @@ -8,27 +8,11 @@

#include <hpx/config.hpp>

#define HPX_DELETE_COPY_CTOR(cls) \
cls(cls const&) = delete \
/**/

#define HPX_DELETE_COPY_ASSIGN(cls) \
cls& operator=(cls const&) = delete \
/**/

#define HPX_DELETE_MOVE_CTOR(cls) \
cls(cls&&) = delete \
/**/

#define HPX_DELETE_MOVE_ASSIGN(cls) \
cls& operator=(cls&&) = delete \
/**/

#define HPX_NON_COPYABLE(cls) \
HPX_DELETE_COPY_CTOR(cls); \
HPX_DELETE_COPY_ASSIGN(cls); \
HPX_DELETE_MOVE_CTOR(cls); \
HPX_DELETE_MOVE_ASSIGN(cls) \
cls(cls const&) = delete; \
cls(cls&&) = delete; \
cls& operator=(cls const&) = delete; \
cls& operator=(cls&&) = delete \
/**/

#endif
3 changes: 1 addition & 2 deletions hpx/parallel/algorithms/count.hpp
Expand Up @@ -71,8 +71,7 @@ namespace hpx { namespace parallel { HPX_INLINE_NAMESPACE(v1)
{}
#endif

HPX_DELETE_COPY_ASSIGN(count_iteration);
HPX_DELETE_MOVE_ASSIGN(count_iteration);
count_iteration& operator=(count_iteration const&) = delete;

template <typename Iter>
HPX_HOST_DEVICE HPX_FORCEINLINE
Expand Down
3 changes: 1 addition & 2 deletions hpx/parallel/algorithms/for_each.hpp
Expand Up @@ -122,8 +122,7 @@ namespace hpx { namespace parallel { HPX_INLINE_NAMESPACE(v1)
{}
#endif

HPX_DELETE_COPY_ASSIGN(for_each_iteration);
HPX_DELETE_MOVE_ASSIGN(for_each_iteration);
for_each_iteration& operator=(for_each_iteration const&) = delete;

template <typename Iter>
HPX_HOST_DEVICE HPX_FORCEINLINE
Expand Down
7 changes: 3 additions & 4 deletions hpx/parallel/algorithms/transform.hpp
Expand Up @@ -96,8 +96,7 @@ namespace hpx { namespace parallel { HPX_INLINE_NAMESPACE(v1)
{}
#endif

HPX_DELETE_COPY_ASSIGN(transform_iteration);
HPX_DELETE_MOVE_ASSIGN(transform_iteration);
transform_iteration& operator=(transform_iteration const&) = delete;

template <typename Iter>
HPX_HOST_DEVICE HPX_FORCEINLINE
Expand Down Expand Up @@ -364,8 +363,8 @@ namespace hpx { namespace parallel { HPX_INLINE_NAMESPACE(v1)
{}
#endif

HPX_DELETE_COPY_ASSIGN(transform_binary_iteration);
HPX_DELETE_MOVE_ASSIGN(transform_binary_iteration);
transform_binary_iteration& operator=(
transform_binary_iteration const&) = delete;

template <typename Iter>
HPX_HOST_DEVICE HPX_FORCEINLINE
Expand Down
5 changes: 0 additions & 5 deletions hpx/runtime/components/pinned_ptr.hpp
Expand Up @@ -99,11 +99,6 @@ namespace hpx { namespace components
return pinned_ptr(lva, id<Component>());
}

#if !defined(HPX_INTEL_VERSION) || (HPX_INTEL_VERSION > 1400)
HPX_DELETE_COPY_CTOR(pinned_ptr);
HPX_DELETE_COPY_ASSIGN(pinned_ptr);
#endif

private:
template <typename Component>
pinned_ptr(naming::address::address_type lva, id<Component>)
Expand Down
4 changes: 2 additions & 2 deletions hpx/runtime/components/server/memory_block.hpp
Expand Up @@ -44,8 +44,6 @@ namespace hpx { namespace components { namespace server { namespace detail
/// a block of memory managed by a server#memory_block component.
class memory_block_header //-V690
{
HPX_DELETE_COPY_CTOR(memory_block_header);

public:
/// This constructor is called on the locality where there memory_block
/// is hosted
Expand Down Expand Up @@ -79,6 +77,8 @@ namespace hpx { namespace components { namespace server { namespace detail
act.construct()(this->get_ptr(), size);
}

memory_block_header(memory_block_header const&) = delete;

~memory_block_header()
{
// invoke destructor, if needed
Expand Down
3 changes: 1 addition & 2 deletions hpx/util/bind.hpp
Expand Up @@ -284,8 +284,7 @@ namespace hpx { namespace util
{}
#endif

HPX_DELETE_COPY_ASSIGN(bound);
HPX_DELETE_MOVE_ASSIGN(bound);
bound& operator=(bound const&) = delete;

template <typename ...Us>
HPX_HOST_DEVICE inline
Expand Down
3 changes: 1 addition & 2 deletions hpx/util/deferred_call.hpp
Expand Up @@ -75,8 +75,7 @@ namespace hpx { namespace util
{}
#endif

HPX_DELETE_COPY_ASSIGN(deferred);
HPX_DELETE_MOVE_ASSIGN(deferred);
deferred& operator=(deferred const&) = delete;

HPX_HOST_DEVICE HPX_FORCEINLINE
typename deferred_result_of<F(Ts...)>::type
Expand Down
3 changes: 1 addition & 2 deletions hpx/util/protect.hpp
Expand Up @@ -46,8 +46,7 @@ namespace hpx { namespace util
{}
#endif

HPX_DELETE_COPY_ASSIGN(protected_bind);
HPX_DELETE_MOVE_ASSIGN(protected_bind);
protected_bind& operator=(protected_bind const&) = delete;
};
}

Expand Down

0 comments on commit 51fa433

Please sign in to comment.