This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Default implementation of std::hash template
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Daniel Frey <d dot frey at gmx dot de>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Wed, 6 Mar 2013 20:04:57 +0000
- Subject: Re: Default implementation of std::hash template
- References: <481EB26C-FD0B-4E5D-935D-2C9A01743451@gmx.de>
On 6 March 2013 19:13, Daniel Frey wrote:
>
> we can have both is_hashable and the static_assert, which fires if someone tries to instantiate the template:
>
> std::unordered_set< std::pair< int, int > > dummy; // fires the static_assert.
>
> What do you think?
On the trunk we just have an undefined primary template, there's no
static_assertion, and your trait works with GCC 4.8 (after adding the
missing closing parenthesis for the sizeof)