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: 252 seconds]
diehlpk_work has quit [Remote host closed the connection]
hkaiser has quit [Quit: Bye!]
K-ballo has quit [Ping timeout: 248 seconds]
K-ballo1 has joined #ste||ar
K-ballo1 is now known as K-ballo
Yorlik__ has quit [Read error: Connection reset by peer]
Yorlik has joined #ste||ar
tufei has quit [Remote host closed the connection]
tufei has joined #ste||ar
tufei_ has joined #ste||ar
tufei has quit [Remote host closed the connection]
K-ballo1 has joined #ste||ar
K-ballo has quit [Ping timeout: 255 seconds]
K-ballo1 is now known as K-ballo
hkaiser has joined #ste||ar
<gonidelis[m]>
what is the difference between value initilization and copy initialization?
<gonidelis[m]>
`A * p = new A();`
<gonidelis[m]>
and
<gonidelis[m]>
`A x = A();`
<gonidelis[m]>
lol I just stumbled across this post of
<hkaiser>
gonidelis[m]: the example above are the same from the standpoint of how the new object is initialized, the difference is in where the memory is the new object is created in
<gonidelis[m]>
one is runtime created the other is compile time?
<gonidelis[m]>
hkaiser:
<gonidelis[m]>
and from K-ballo 's comments: what is the difference between `A x( A() )` and `A x( (A()) )`?
<hkaiser>
one calls the default constructor, the other first a default contructor and then the copy constructor