Boost logo

Boost :

From: Greg Colvin (gcolvin_at_[hidden])
Date: 1999-11-10 14:46:50


I've been too busy to participate in this discussion, but I liked the
direction things were moving in, and what Darin recommends seems quite
reasonable. And I certainly would like the help.

Greg Colvin
gcolvin_at_[hidden]

----- Original Message -----
From: Darin Adler <darin_at_[hidden]>
To: Boost <boost_at_[hidden]>
Sent: Wednesday, November 10, 1999 10:17 AM
Subject: [boost] summary of ideas for shared_ptr

I think this is the consensus so far.

    - add template non-member functions for operator == and operator != for
shared_ptr that allow base/derived mixes
    - add template non-member functions for operator == and operator != for
shared_array that (of course) do not allow base/derived mixes
    - add a non-throwing swap member function for shared_ptr and
shared_array
    - add a specialization of std::swap for shared_ptr and shared_array
    - add a specialization of std::less for shared_ptr and shared_array

The specialization of swap improves the performance of some algorithms in
the standard library. The specialization of less allows associative
containers to work with objects of shared_ptr/shared_array type as keys.

By the way, I'd be happy to do work on some or all of these, if whoever's
maintaining this file now (Beman?) would like the help.

    -- Darin

------------------------------------------------------------------------
A shopper's dream come true! Find practically anything on earth at eBay!
Come and browse the more than 2 million items up for bid at any time.
You never know what you might find at eBay!
http://clickhere.egroups.com/click/1140

-- eGroup Home: http://www.egroups.com/group/boost/?m=1
-- Free email groups at eGroups.com


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