// // Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef BEAST_HTTP_IMPL_PARSER_IPP #define BEAST_HTTP_IMPL_PARSER_IPP #include #include namespace beast { namespace http { template parser:: parser() : wr_(m_) { } template template parser:: parser(Arg1&& arg1, ArgN&&... argn) : m_(std::forward(arg1), std::forward(argn)...) , wr_(m_) { } template template parser:: parser(parser&& other, Args&&... args) : base_type(std::move(other)) , m_(other.release(), std::forward(args)...) , wr_(m_) { if(other.wr_inited_) BOOST_THROW_EXCEPTION(std::invalid_argument{ "moved-from parser has a body"}); } } // http } // beast #endif