::std::string str_generate()
{
::std::string s;
- ::roast::string_stream ss(s);
+ ::roast::string_output_stream ss(s);
rule::false_ret_to_exception<_Rule> r;
r.generate(ss, null_document);
return s;
::std::string str_generate(_Document& doc)
{
::std::string s;
- ::roast::string_stream ss(s);
+ ::roast::string_output_stream ss(s);
rule::false_ret_to_exception<_Rule> r;
r.generate(ss,doc);
return s;
template <typename _Rule, typename _Document>
::std::string to_string(_Rule& r, _Document& doc){
::std::string s;
- ::roast::string_stream ss(s);
+ ::roast::string_output_stream ss(s);
//if ( r.generate(ss,doc) == false )
r.generate(ss,doc);
return s;
::std::string to_string2(_Rule& r)
{
::std::string s;
- ::roast::string_stream ss(s);
+ ::roast::string_output_stream ss(s);
//if ( r.generate(ss,doc) == false )
generate(ss,r);
return s;
#define __SFJP_ROAST__web__uri_HPP__
#include "roast/lexical.hpp"
-#include "roast/delay_ref.hpp"
#include <string>
namespace roast
_Scheme, ::roast::lexical::chars::colon, _Body> _Base;
public:
- uri_(){}
- uri_(const _Scheme& scheme_in, const _Body& body_in){
- scheme = scheme_in;
- body = body_in;
- }
-
//delay_ref<_Scheme> scheme;
//delay_ref<_Body> body;
_Scheme scheme;
_Body body;
+ public:
+ uri_(){}
+ uri_(const _Scheme& scheme_in, const _Body& body_in) :
+ scheme(scheme_in), body(body_in)
+ {}
+
/*_Scheme& scheme(){ return _Base::ref<0>(); }
const _Scheme& scheme() const { return _Base::ref<0>(); }