|
Boost Users : |
From: David Abrahams (dave_at_[hidden])
Date: 2005-04-01 08:54:25
Bruce Trask <Bruce.Trask_at_[hidden]> writes:
> Hi David,
>
> Thanks for you response.
>
> On Thu, 2005-03-31 at 14:51 -0500, David Abrahams wrote:
>
>> char const test_string[] = "TestStringName";
>>
>> A pointer or reference to test_string can be used as a template
>> parameter as long as test_string is declared at namespace scope.
>>
>
> Right. Something like what's on page 41 of Vandevoorde and Josuttis?
> Something like
>
<snip>
Sure.
> Dumb question and just so I am clear: when you say "declared at
> namespace scope" are you referring to the "external linkage" that David
> and Nicolai are referring to which keeps two string literals with the
> same value being the same object?
No, I mean "not declared on the stack."
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net