This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/51365] cannot use final empty class in std::tuple
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 01 Dec 2011 01:07:27 +0000
- Subject: [Bug libstdc++/51365] cannot use final empty class in std::tuple
- Auto-submitted: auto-generated
- References: <bug-51365-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51365
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-01 01:07:27 UTC ---
Here's another testcase:
#include <future>
#include <memory>
template<typename T>
struct final_allocator final : std::allocator<T>
{
final_allocator() = default;
template<typename U>
final_allocator(const final_allocator<U>&) { }
template<typename U>
struct rebind { typedef final_allocator<U> other; };
};
final_allocator<int> a;
std::promise<int> p(std::allocator_arg, a);