Re: [Cppcms-users] In json.cpp and json.h I did not see thedeclareof the parse_stream function but
Brought to you by:
artyom-beilis
|
From: Marcel H. <ke...@co...> - 2011-12-28 12:05:16
|
Why don't you crawl through the sourcecode?
Line 41 + 42 namespace cppcms {
namespace json {
Line 559 namespace { (anonymous namespace
If you go through the json.h you see, that there isn't any method
parse_stream, that means it is a function in a way that is only declared
in the anonymous namespace from line 559 to 1046 and not a class method.
Am 28.12.2011 12:54, schrieb 44073786:
> I do not know whether my idea is right ? is the bool
> parse_stream(std::istream &in,value &out,bool force_eof,int
> &error_at_line) in the default global scope?
> ------------------ Original ------------------
> *From: * "44073786"<440...@qq...>;
> *Date: * Wed, Dec 28, 2011 07:52 PM
> *To: * "cppcms-users"<cpp...@li...>;
> *Subject: * Re: [Cppcms-users] In json.cpp and json.h I did not see
> thedeclareof the parse_stream function but you use it onjson.cpp in
> 1051 line.why /?
> I konw it in 836,but I think it should bool
> value::parse_stream(std::istream &in,value &out,bool force_eof,int
> &error_at_line),but not bool parse_stream(std::istream &in,value
> &out,bool force_eof,int &error_at_line) ? I don not now why.?
> ------------------ Original ------------------
> *From: * "Marcel Hellwig"<ke...@co...>;
> *Date: * Wed, Dec 28, 2011 07:44 PM
> *To: * "cppcms-users"<cpp...@li...>;
> *Subject: * Re: [Cppcms-users] In json.cpp and json.h I did not see
> the declareof the parse_stream function but you use it on json.cpp in
> 1051 line.why /?
> grep -Hirn "parse_stream" cppcms/src
> cppcms/src/json.cpp:836: bool parse_stream(std::istream
> &in,value &out,bool force_eof,int &error_at_line)
> cppcms/src/json.cpp:1051:
> if(!parse_stream(in,*this,full,err_line)) {
> cppcms/src/json.cpp:1063: if(!parse_stream(in,v,false,line_no))
>
> as you can see it's a method declared in line 836.
> Did you use Strg+F?
>
>
> Am 28.12.2011 12:21, schrieb 44073786:
>> Hello:
>> when I read the source code. In json.cpp and json.h I did not see the
>> declare of the parse_stream function but you use it on json.cpp in
>> 1051 line.why /?
>> I don not know why? please help me .thank you very much!
>>
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Write once. Port to many.
>> Get the SDK and tools to simplify cross-platform app development. Create
>> new or port existing apps to sell to consumers worldwide. Explore the
>> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
>> http://p.sf.net/sfu/intel-appdev
>>
>>
>> _______________________________________________
>> Cppcms-users mailing list
>> Cpp...@li...
>> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
> ------------------------------------------------------------------------------
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create
> new or port existing apps to sell to consumers worldwide. Explore the
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
>
>
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
|