Make it explicit that the probe function doesn't modify passed message

This commit is contained in:
Martin Hurton
2014-01-08 07:49:02 +01:00
parent 629221889d
commit d72ceb93be
8 changed files with 8 additions and 8 deletions

View File

@@ -107,7 +107,7 @@ namespace zmq
// Applies the function fn to the first elemenent in the pipe
// and returns the value returned by the fn.
// The pipe mustn't be empty or the function crashes.
inline bool probe (bool (*fn)(T &))
inline bool probe (bool (*fn)(const T &))
{
return dbuffer.probe (fn);
}