Skip to content

Commit

Permalink
Merge pull request #3004 from STEllAR-GROUP/future_data_void-warn
Browse files Browse the repository at this point in the history
Silence C4251 (needs to have dll-interface) for future_data_void
  • Loading branch information
hkaiser committed Nov 17, 2017
2 parents 660def2 + 331ad7b commit 42a588b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions hpx/lcos/detail/future_data.hpp
Expand Up @@ -38,6 +38,8 @@
#include <type_traits>
#include <utility>

#include <hpx/config/warnings_prefix.hpp>

///////////////////////////////////////////////////////////////////////////////
namespace hpx { namespace lcos
{
Expand All @@ -62,15 +64,15 @@ namespace detail
void intrusive_ptr_release(future_data_refcnt_base* p);

///////////////////////////////////////////////////////////////////////
struct future_data_refcnt_base
struct HPX_EXPORT future_data_refcnt_base
{
private:
typedef util::unique_function_nonser<void()> completed_callback_type;

public:
typedef void has_future_data_refcnt_base;

virtual ~future_data_refcnt_base() {}
virtual ~future_data_refcnt_base();

virtual void set_on_completed(completed_callback_type) = 0;

Expand Down Expand Up @@ -1050,4 +1052,6 @@ namespace hpx { namespace traits
#endif
}}

#include <hpx/config/warnings_suffix.hpp>

#endif
3 changes: 3 additions & 0 deletions src/lcos/detail/future_data.cpp
Expand Up @@ -26,6 +26,9 @@

namespace hpx { namespace lcos { namespace detail
{
future_data_refcnt_base::~future_data_refcnt_base() = default;

///////////////////////////////////////////////////////////////////////////
static bool run_on_completed_on_new_thread(
util::unique_function_nonser<bool()> && f, error_code& ec)
{
Expand Down

0 comments on commit 42a588b

Please sign in to comment.