August 01, 2003
Generalized String Manipulation: Access Shims and Type Tunneling
Listing 8: Expanding a string-access trait to other types
Listing 8: Expanding a string-access trait to other types
namespace windows
{
class Window
{
...
};
} // namespace windows
namespace stlsoft
{
template <>
struct string_access_traits<windows::Window>
{
static char const *c_str(windows::Window const &w)
{
. . .
}
static size_t c_str(windows::Window const &w)
{
. . .
}
};
} // namespace stlsoft
Previous Page |
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
19
|
20
Next Page