Boost logo

Boost :

Subject: [boost] [move] one more dumb question
From: DE (satan66613_at_[hidden])
Date: 2010-02-25 15:57:25


how do i make a function return an object by value and other object
to, say, move assign from that returned object within current C++ std?
i.e.

  my_type foo() {/*...*/}
  //...
  my_type a;
  a = foo(); //move assignment is intended here

--
Pavel

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk