Permalink
Browse files

this can be a default parameter

  • Loading branch information...
1 parent fa96325 commit 02d42f65d5c3285474c8d9509138429b97da9387 @erikfrey erikfrey committed Feb 24, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 include/spread/exploder.h
  2. +1 −1 include/spread/spreader.hpp
  3. +1 −1 src/exploder.cpp
@@ -26,7 +26,7 @@ class exploder
const boost::asio::ip::tcp::endpoint& server,
const std::vector<boost::asio::ip::tcp::endpoint>& clients,
std::ostream& out,
- boost::shared_ptr<progress> _progress);
+ boost::shared_ptr<progress> _progress = boost::shared_ptr<progress>());
exploder & operator<<(const std::string& data);
@@ -30,7 +30,7 @@ class spreader
const boost::asio::ip::tcp::endpoint& server,
const std::vector<boost::asio::ip::tcp::endpoint>& clients,
std::ostream& out,
- boost::shared_ptr<progress> _progress,
+ boost::shared_ptr<progress> _progress = boost::shared_ptr<progress>(),
const hasher_type& hfn = hasher_type())
: acceptor_(new boost::asio::ip::tcp::acceptor(io, server)),
progress_(_progress),
View
@@ -10,7 +10,7 @@ exploder::exploder(boost::asio::io_service& io,
const boost::asio::ip::tcp::endpoint& server,
const vector<boost::asio::ip::tcp::endpoint>& clients,
ostream& out,
- boost::shared_ptr<progress> _progress)
+ boost::shared_ptr<progress> _progress /*= boost::shared_ptr<progress>()*/)
: acceptor_(new boost::asio::ip::tcp::acceptor(io, server)),
progress_(_progress)
{

0 comments on commit 02d42f6

Please sign in to comment.