Skip to content

Commit

Permalink
+ use mapnik::noncopyable
Browse files Browse the repository at this point in the history
  • Loading branch information
artemp committed May 16, 2013
1 parent a390013 commit 37cc3de
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bindings/python/python_optional.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#include <boost/optional/optional.hpp>
#include <boost/python.hpp>
#include <boost/noncopyable.hpp>

// boost::optional<T> to/from converter from John Wiegley

Expand All @@ -46,7 +45,7 @@ struct register_python_conversion
};

template <typename T>
struct python_optional : public boost::noncopyable
struct python_optional : public mapnik::noncopyable
{
struct optional_to_python
{
Expand Down Expand Up @@ -101,9 +100,9 @@ struct python_optional : public boost::noncopyable
}
};

// to/from optional<float>
// to/from boost::optional<float>
template <>
struct python_optional<float> : public boost::noncopyable
struct python_optional<float> : public mapnik::noncopyable
{
struct optional_to_python
{
Expand Down

0 comments on commit 37cc3de

Please sign in to comment.