|
Boost : |
From: Daveus, Fredrik (Fredrik.Daveus_at_[hidden])
Date: 2007-06-13 13:03:48
Daveus, Fredrik a ?crit :
> I want to pass the result of a map_list_of call as an argument to a
> class ctor, but the only way I've managed to do this is by using some
> stuff from the assign_detail namespace.
>
> Is there any other (more elegant) way of achieving this?
template<typename T>
A(const T& t) : m_map(t)
{
}
maybe?
thanks, didn't try that one but tried the following and it compiles ok
template<typename It>
A(It first, It last) : m_map(first, last)
{ }
/ Fredrik
This e-mail, its content and any files transmitted with it are intended solely for the addressee(s) and may be legally privileged and/or confidential. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message and any attachments which arise as a result of e-mail transmission.
If verification is required please request a hard-copy version. This message is provided for information purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments.
Canadian Imperial Bank of Commerce is a bank incorporated in Canada pursuant to the Bank Act(Canada)with its Head office at Toronto ,Canada,registered UK branch: Cottons Centre,Cottons Lane,London SE1 2QL.UK ,registration number FC001165,branch number BR000397; CIBC World Markets plc is incorporated and registered in England &Wales,registration number 2733036,registered office: Cottons Centre,aforesaid.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk