hkaiser changed the topic of #ste||ar to: STE||AR: Systems Technology, Emergent Parallelism, and Algorithm Research | stellar-group.org | HPX: A cure for performance impaired parallel applications | github.com/STEllAR-GROUP/hpx | This channel is logged: irclog.cct.lsu.edu
Yorlik_ has joined #ste||ar
Yorlik has quit [Ping timeout: 268 seconds]
hkaiser has quit [Quit: Bye!]
K-ballo1 has joined #ste||ar
K-ballo has quit [Ping timeout: 252 seconds]
K-ballo1 is now known as K-ballo
<K-ballo>
satacker[m]: declval must not be used
<K-ballo>
odr-used that is, it's only meant to appear in unevaluated contexts
<K-ballo>
if you actually called declval<bool>() what would it return? true? false? something else? where would the refered storage live?
<satacker[m]>
<K-ballo> "odr-used that is, it's only..." <- Thanks, got it
<gonidelis[m]>
K-ballo: same applies to whatever type, no? not just bool...
K-ballo1 has joined #ste||ar
K-ballo has quit [Ping timeout: 268 seconds]
K-ballo1 is now known as K-ballo
hkaiser has joined #ste||ar
<pansysk75[m]>
Is there a straightforward way to get a std::vector<T> from a std::vector<hpx::future<T>> without copying?
<pansysk75[m]>
Sth like a move constructor, its ok for the std::vector<hpx::future<T>> to be invalidated
<hkaiser>
pansysk75[m]: hpx:unwrap
<hkaiser>
vector<future<T>> vf = {}; vector<T> v = hpx::unwrap(vf);
<pansysk75[m]>
thanks! no need to explain further :)
<hkaiser>
even vector<future<T>> vf = {}; vector<T> v = hpx::unwrap(std::move(vf));
<pansysk75[m]>
2nd example invalidates vf, does the 1st one invalidate vf as well?
<hkaiser>
I think the first one either doesn't work or invalidate the futures, not sure which
<pansysk75[m]>
aha ok, i will try them out
<pansysk75[m]>
thanks!
<hkaiser>
the second version is correct either way