C++0x: promise sample

Signed-off-by: Stefan Naewe <stefan.naewe@gmail.com>