Boost logo

Boost :

From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2002-07-27 09:56:04


"Gennadiy Rozental" <rogeeff_at_[hidden]> wrote in message
news:ahtmq6$rt$1_at_main.gmane.org...
>

[...]

In fact the syntax could be discussed because there are different
possibilities:
1) shared_ptr< rc<parent> > p = new (new (xmm) child("John", "McInnis"))
rc<child>;

2) shared_ptr< rc<parent> > p = new (new (xmm()) child("John", "McInnis"))
rc<child>;

3) shared_ptr< rc<parent> > p = rc(new (xmm) child("John", "McInnis"));

4) shared_ptr< rc<parent> > p = rc(new (xmm()) child("John", "McInnis"));
5) shared_ptr< rc<parent> > p = make_rc(child("John", "McInnis"));
// With macro usages

I personaly prefer the first one but I'm not sure what you think. Votings
(for including it then for syntax) would help me on this because the backend
depends on the syntax primarily.

Thank you,

Philippe A. Bouchard


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