Am 02.04.2014 18:11, schrieb Little, Damon:
>
> std::string z;
> if(qparam.paramcount()){
>   z = tnt::stringTo<std::string>("z", "std::string", qparam.param(0), 
> reply.out().getloc());
> }
> std::istringstream in(z);
> cxxtools::JsonDeserializer unjson(in);
>
> Please note that qparam is not declared in the .ecpp file. The declaration is 
> added when ecpp converts it to .cpp.
>
> For the record, I am using Zepto rather than jQuery, but I don’t think that 
> should matter at all.
>
> Damon
Why do you use tnt::stringTo? qparam.param(0) returns a std::string 
already. You can just write:

std::istringstream in(qparam(0));

And yes - qparam has both the GET and POST parameters.

Tommi


------------------------------------------------------------------------------
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to