From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4295 invoked by alias); 5 Feb 2011 14:37:10 -0000 Received: (qmail 4285 invoked by uid 22791); 5 Feb 2011 14:37:09 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-iw0-f175.google.com (HELO mail-iw0-f175.google.com) (209.85.214.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 05 Feb 2011 14:37:04 +0000 Received: by iwn8 with SMTP id 8so3279152iwn.20 for ; Sat, 05 Feb 2011 06:37:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.225.133 with SMTP id is5mr9685142icb.325.1296916622846; Sat, 05 Feb 2011 06:37:02 -0800 (PST) Received: by 10.42.230.68 with HTTP; Sat, 5 Feb 2011 06:37:02 -0800 (PST) In-Reply-To: <20110205124139.GB29367@nibiru.local> References: <20110204194604.GB12837@nibiru.local> <20110205124139.GB29367@nibiru.local> Date: Sat, 05 Feb 2011 14:43:00 -0000 Message-ID: Subject: Re: C++ and garbage collection From: Jonathan Wakely To: weigelt@metux.de, gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-02/txt/msg00119.txt.bz2 On 05/02/2011, Enrico Weigelt wrote: > >> One viable approach is to modify the uses of pointers into shared_ptr >> (from TR1 or boost) and then add the Boehm collector. This process >> takes work, because changing all pointers won't work and changing >> none won't buy you anything. > > Guess this would take a lot of work and add more dependencies > (than just the relatively small boehm-gc lib) ... GCC includes a tr1::shared_ptr so there's no extra dependency if you are only planning to use g++, and std::shared_ptr is part of C++0x.