diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-03-02 22:52:32 +0000 |
|---|---|---|
| committer | Krzysztof Kosiński <tweenk.pl@gmail.com> | 2010-03-02 22:52:32 +0000 |
| commit | 84fc09c9c921a31ac826c53e419d4ea61584f8a9 (patch) | |
| tree | 963de2de0cd357d863d3ba104167abef31683750 /src/util | |
| parent | Win32. Fix for Object Visible warning. (diff) | |
| download | inkscape-84fc09c9c921a31ac826c53e419d4ea61584f8a9.tar.gz inkscape-84fc09c9c921a31ac826c53e419d4ea61584f8a9.zip | |
Use Boost unordeed containers instead of TR1 to minimize pain
when using Apple compilers.
(bzr r9129)
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/hash.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/util/hash.h b/src/util/hash.h deleted file mode 100644 index d5abeff5a..000000000 --- a/src/util/hash.h +++ /dev/null @@ -1,41 +0,0 @@ -/** @file - * Hash function for various things - */ -/* Authors: - * Krzysztof Kosiński <tweenk.pl@gmail.com> - * - * Copyright (C) 2009 Authors - * Released under GNU GPL, read the file 'COPYING' for more information - */ - -#ifndef SEEN_UTIL_HASH_H -#define SEEN_UTIL_HASH_H - -#include <boost/shared_ptr.hpp> - -namespace std { -namespace tr1 { - -/** Hash function for Boost shared pointers */ -template <typename T> -struct hash< boost::shared_ptr<T> > : public std::unary_function<boost::shared_ptr<T>, size_t> { - size_t operator()(boost::shared_ptr<T> p) const { - return reinterpret_cast<size_t>(p.get()); - } -}; - -} // namespace tr1 -} // namespace std - -#endif - -/* - Local Variables: - mode:c++ - c-file-style:"stroustrup" - c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) - indent-tabs-mode:nil - fill-column:99 - End: -*/ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : |
