18 lines
398 B
C++
Raw Normal View History

2025-01-12 20:37:50 +08:00
// Copyright 2006-2009 Daniel James.
// Copyright 2021 Peter Dimov.
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt)
#include <boost/container_hash/hash.hpp>
#include <deque>
int main()
{
std::deque<int> x;
x.push_back( 1 );
x.push_back( 2 );
return boost::hash< std::deque<int> >()( x ) == boost::hash_value( x )? 0: 1;
}