1 | #include <cstring> |
2 | |
3 | template <typename T> |
4 | class Foo |
5 | { |
6 | public: |
7 | Foo () : object() {} |
8 | Foo (T x) : object(x) {} |
9 | T getObject() { return object; } |
10 | private: |
11 | T object; |
12 | }; |
13 | |
14 | |
15 | int main (int argc, char const *argv[]) |
16 | { |
17 | Foo<int> foo_x('a'); |
18 | Foo<wchar_t> foo_y(L'a'); |
19 | const wchar_t *mazeltov = L"מזל טוב" ; |
20 | wchar_t *ws_NULL = nullptr; |
21 | wchar_t *ws_empty = L"" ; |
22 | wchar_t array[200], * array_source = L"Hey, I'm a super wchar_t string, éõñž" ; |
23 | wchar_t wchar_zero = (wchar_t)0; |
24 | memcpy(dest: array, src: array_source, n: 39 * sizeof(wchar_t)); |
25 | return 0; // break here |
26 | } |
27 | |