Skip to content

Commit

Permalink
Working around gcc 4.4 deficits related to #1115: Compile error with …
Browse files Browse the repository at this point in the history
…Intel C++ 13.1
  • Loading branch information
hkaiser committed Apr 22, 2014
1 parent f4865db commit 37e4e13
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions hpx/util/coroutine/detail/tss.hpp
Expand Up @@ -39,6 +39,10 @@ namespace hpx { namespace util { namespace coroutines
HPX_MOVABLE_BUT_NOT_COPYABLE(tss_data_node)

public:
tss_data_node()
: value_(0)
{}

tss_data_node(void* val)
: func_(),
value_(val)
Expand Down
6 changes: 4 additions & 2 deletions src/util/coroutine/detail/tss.cpp
Expand Up @@ -79,13 +79,15 @@ namespace hpx { namespace util { namespace coroutines { namespace detail
void insert(void const* key,
boost::shared_ptr<tss_cleanup_function> const& func, void* tss_data)
{
data_.insert(std::make_pair(key, tss_data_node(func, tss_data)));
tss_data_node node(func, tss_data);
data_[key] = std::move(node);
}

void insert(void const* key, void* tss_data)
{
boost::shared_ptr<tss_cleanup_function> func;
data_.insert(std::make_pair(key, tss_data_node(func, tss_data)));
tss_data_node node(func, tss_data);
data_[key] = std::move(node);
}

void erase(void const* key, bool cleanup_existing)
Expand Down

0 comments on commit 37e4e13

Please sign in to comment.