Skip to content

Commit

Permalink
Merge pull request zeromq#62 from gdfast/patch-2
Browse files Browse the repository at this point in the history
Make getsockopt() functions const
  • Loading branch information
c-rack committed Nov 19, 2015
2 parents bad35bd + c1e8ac0 commit 2e22e3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zmq.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,14 +497,14 @@ namespace zmq
}

inline void getsockopt (int option_, void *optval_,
size_t *optvallen_)
size_t *optvallen_) const
{
int rc = zmq_getsockopt (ptr, option_, optval_, optvallen_);
if (rc != 0)
throw error_t ();
}

template<typename T> T getsockopt(int option_)
template<typename T> T getsockopt(int option_) const
{
T optval;
size_t optlen = sizeof(T);
Expand Down

0 comments on commit 2e22e3f

Please sign in to comment.