mirror of
https://github.com/boostorg/container_hash.git
synced 2026-02-23 15:42:18 +00:00
Merge iostreams, hash.
Including disallowing implicit casts to `hash_value`. [SVN r63812]
This commit is contained in:
16
test/shared_ptr_fail_test.cpp
Normal file
16
test/shared_ptr_fail_test.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
// Copyright 2010 Daniel James.
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include <boost/functional/hash.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
// This should obviously pass if shared_ptr ever supports Boost.Hash.
|
||||
|
||||
int main() {
|
||||
boost::hash<boost::shared_ptr<int> > hash;
|
||||
boost::shared_ptr<int> x(new int(10));
|
||||
|
||||
hash(x);
|
||||
}
|
||||
Reference in New Issue
Block a user