Re: [Boost-docs] Quickbook - Snippet markup

Subject: Re: [Boost-docs] Quickbook - Snippet markup
From: er (er.ci.2020_at_[hidden])
Date: 2011-03-12 16:27:28


On 3/12/11 11:18 AM, Steven Watanabe wrote:
> AMDG
>
> On 03/11/2011 07:37 PM, er wrote:
>> Consider:
>>
>> //[foo
>> struct Foo{
>>
>> Foo()
>> //<-
>> : x( 10 )
>> {}
>> //->
>>
>> //<-
>> int x;
>> //->
>> };
>> //]
>>
>> It yields:
>>
>> struct Foo{
>>
>> Foo()
>>
>> };
>>
>> But I would like, instead, a declarative statement for the constructor:
>>
>> struct Foo{
>>
>> Foo();
>>
>> };
>>
>> For now, I do, in addition to the actual code
>>
>> //[foo
>> /*`
>> ``
>> struct Foo{
>>
>> Foo();
>>
>> };
>> ``
>> //]
>>
>> but I would prefer markups within the actual code. How, then, please?
>> Thanks.
>
> Move the implementation out of line?

Thanks, do you mean this?

//[foo
   struct Foo{

     Foo();

  };
//]

   Foo::Foo : x(10){}

That's not so great when templates are involved. I'd like to declare &
define all at once, but document only the former, if possible.

>
> In Christ,
> Steven Watanabe


This archive was generated by hypermail 2.1.7 : 2017-11-11 08:50:41 UTC