Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
this can be a default parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
erikfrey committed Feb 24, 2012
1 parent fa96325 commit 02d42f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/spread/exploder.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class exploder
const boost::asio::ip::tcp::endpoint& server, const boost::asio::ip::tcp::endpoint& server,
const std::vector<boost::asio::ip::tcp::endpoint>& clients, const std::vector<boost::asio::ip::tcp::endpoint>& clients,
std::ostream& out, std::ostream& out,
boost::shared_ptr<progress> _progress); boost::shared_ptr<progress> _progress = boost::shared_ptr<progress>());


exploder & operator<<(const std::string& data); exploder & operator<<(const std::string& data);


Expand Down
2 changes: 1 addition & 1 deletion include/spread/spreader.hpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class spreader
const boost::asio::ip::tcp::endpoint& server, const boost::asio::ip::tcp::endpoint& server,
const std::vector<boost::asio::ip::tcp::endpoint>& clients, const std::vector<boost::asio::ip::tcp::endpoint>& clients,
std::ostream& out, std::ostream& out,
boost::shared_ptr<progress> _progress, boost::shared_ptr<progress> _progress = boost::shared_ptr<progress>(),
const hasher_type& hfn = hasher_type()) const hasher_type& hfn = hasher_type())
: acceptor_(new boost::asio::ip::tcp::acceptor(io, server)), : acceptor_(new boost::asio::ip::tcp::acceptor(io, server)),
progress_(_progress), progress_(_progress),
Expand Down
2 changes: 1 addition & 1 deletion src/exploder.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exploder::exploder(boost::asio::io_service& io,
const boost::asio::ip::tcp::endpoint& server, const boost::asio::ip::tcp::endpoint& server,
const vector<boost::asio::ip::tcp::endpoint>& clients, const vector<boost::asio::ip::tcp::endpoint>& clients,
ostream& out, 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)), : acceptor_(new boost::asio::ip::tcp::acceptor(io, server)),
progress_(_progress) progress_(_progress)
{ {
Expand Down

0 comments on commit 02d42f6

Please sign in to comment.