[webkit-dev] static const

Darin Adler darin at apple.com
Wed Sep 2 09:32:48 PDT 2009


On Sep 2, 2009, at 9:31 AM, Alexey Proskuryakov wrote:

> As an aside, is there any practical difference between "static  
> const" and "const" in C++? The only difference I'm aware of is that  
> the former is deprecated in the standard.

I believe the former gives internal linkage and the latter external  
linkage, so I always use the former for things defined in a source  
file and not declared in a header file and the latter for things  
defined or declared in a header file.

     -- Darin



More information about the webkit-dev mailing list