Boost logo

Geometry :

Subject: [ggl] Reviewing GGL against Boost requirements
From: Mateusz Loskot (mateusz)
Date: 2009-04-25 14:16:09


Barend Gehrels wrote:
>
>>>
>>>> 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.

Understood.

-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org

Geometry list run by mateusz at loskot.net