This may be nit picky, but I find this approach a bit hard to read.  What would you think of moving this assignment outside the call to qpid::server, so in this call it is a simple 'pass in the variable'?