blob: 57050035124062ae4170bc3a39aa70657841497b [file] [log] [blame]
Howard Hinnantbc8d3f92010-05-11 19:42:16 +00001#ifndef NOTCONSTRUCTIBLE_H
2#define NOTCONSTRUCTIBLE_H
3
4#include <functional>
5
6class NotConstructible
7{
8 NotConstructible(const NotConstructible&);
9 NotConstructible& operator=(const NotConstructible&);
10public:
11};
12
13inline
14bool
15operator==(const NotConstructible&, const NotConstructible&)
16{return true;}
17
18namespace std
19{
20
21template <>
22struct hash<NotConstructible>
23 : public std::unary_function<NotConstructible, std::size_t>
24{
25 std::size_t operator()(const NotConstructible&) const {return 0;}
26};
27
28}
29
Howard Hinnant6046ace2010-08-22 00:15:28 +000030#endif // NOTCONSTRUCTIBLE_H