Fix shadowing warnings

fix #510
This commit is contained in:
Vinnie Falco committed 2017-07-20 08:15:27 -07:00
1 parent 65932ee343
commit 8f627b0748
15 files changed
+99 -97

No files matched your search

+4 -4
View File
@@ -26,12 +26,12 @@ parser(Arg1&& arg1, ArgN&&... argn)
template<bool isRequest, class Body, class Fields>
template<class OtherBody, class... Args, class>
parser<isRequest, Body, Fields>::
parser(parser<isRequest, OtherBody, Fields>&& parser,
parser(parser<isRequest, OtherBody, Fields>&& p,
Args&&... args)
: base_type(std::move(parser))
, m_(parser.release(), std::forward<Args>(args)...)
: base_type(std::move(p))
, m_(p.release(), std::forward<Args>(args)...)
{
if(parser.wr_)
if(p.wr_)
BOOST_THROW_EXCEPTION(std::invalid_argument{
"moved-from parser has a body"});
}