This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
should <bits/unique_ptr.h> include <backward/auto_ptr.h>?
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Sun, 24 Jun 2012 22:10:22 +0100
- Subject: should <bits/unique_ptr.h> include <backward/auto_ptr.h>?
I'm working on std::wstring_convert and want to use std::unique_ptr.
To avoid <locale> pulling in the whole of <memory> I only want to
include unique_ptr.h, but that means I also need to include
<backward/auto_ptr.h>. If bits/unique_ptr.h included auto_ptr.h
itself then we could just use unique_ptr.h elsewhere in the library
more easily.
Currently <future> includes the whole of <memory> but IIRC all it
really needs is unique_ptr.h, shared_ptr.h and allocator.h