diff --git a/include/boost/python/object_protocol.hpp b/include/boost/python/object_protocol.hpp index 975c9379..8698dd9f 100755 --- a/include/boost/python/object_protocol.hpp +++ b/include/boost/python/object_protocol.hpp @@ -29,7 +29,7 @@ object getattr(Target const& target, Key const& key, Default const& default_) template void setattr(object const& target, Key const& key, Value const& value) { - return setattr(target, object(key), object(value)); + setattr(target, object(key), object(value)); } template @@ -66,7 +66,7 @@ object getslice(Target const& target, Begin const& begin, End const& end) template void setslice(object const& target, Begin const& begin, End const& end, Value const& value) { - return setslice(target, object(begin), object(end), object(value)); + setslice(target, object(begin), object(end), object(value)); } template