1 Apr
2005
1 Apr
'05
1:54 p.m.
Bruce Trask
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