projects
/
libcds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed explicit ctor bugs in stress tests
[libcds.git]
/
test
/
stress
/
set
/
set_type_std.h
diff --git
a/test/stress/set/set_type_std.h
b/test/stress/set/set_type_std.h
index 54e265c96a0f1ed615fcfa3f60ea772093155baa..c4481cf42b789ee9aa406eb4ee84e59cc9f3e417 100644
(file)
--- a/
test/stress/set/set_type_std.h
+++ b/
test/stress/set/set_type_std.h
@@
-164,10
+164,11
@@
namespace set {
return base_class::find( v ) != base_class::end();
}
return base_class::find( v ) != base_class::end();
}
- bool insert( value_type const& v )
+ template <typename Key>
+ bool insert( Key const& k )
{
scoped_lock al( m_lock );
{
scoped_lock al( m_lock );
- return base_class::insert( v
).second;
+ return base_class::insert( v
alue_type( k )
).second;
}
template <typename Key, typename Func>
}
template <typename Key, typename Func>