|
Geometry : |
Subject: [ggl] Reviewing GGL against Boost requirements
From: Barend Gehrels (Barend.Gehrels)
Date: 2009-04-25 13:48:35
>>
>>> namespace a {
>>>
>>> class T
>>> {
>>> public:
>>> void foo();
>>> protected:
>>> void bar();
>>> private:
>>> std::size_t count_;
>>> };
>>>
>>> } // namespace a
>>>
>> Few things about this:
>> - I prefer a struct above a class because, especially in templates, many
>> is public, often there is no protected / private at all
>> - T in lowercase
>>
>
> One thing that seems I've not spotted:
>
> What T in lowercase mean?
>
> Is it about T as name of type (struct, class, typedef etc.)
> or T as template parameter name?
> For the latter, we've decided to use T or TemplParam naming. I'm a bit
> confused :-)
>
Sure, it was just that here is stated "class T" and classes are normally
written in lowercase. Templates are (like in Boost) in MixedCase (or one
character as T) indeed.
Regards, Barend
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/ggl/attachments/20090425/9b9299b4/attachment.html
Geometry list run by mateusz at loskot.net