Skip to content

Commit 5812bb5

Browse files
authored
Merge pull request #5732 from ab9rf/static-wstring
add type identity support for `static-wstring`
2 parents 7c9ec56 + 191e252 commit 5812bb5

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

library/DataIdentity.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ namespace df {
3333
INTEGER_IDENTITY_TRAITS(unsigned long, "unsigned long");
3434
INTEGER_IDENTITY_TRAITS(long long, "int64_t");
3535
INTEGER_IDENTITY_TRAITS(unsigned long long, "uint64_t");
36+
INTEGER_IDENTITY_TRAITS(wchar_t, "wchar_t");
3637
FLOAT_IDENTITY_TRAITS(float);
3738
FLOAT_IDENTITY_TRAITS(double);
3839

@@ -57,6 +58,7 @@ namespace df {
5758
OPAQUE_IDENTITY_TRAITS(std::optional<std::function<void()> >);
5859
OPAQUE_IDENTITY_TRAITS(std::variant<std::string, std::function<void()> >);
5960
OPAQUE_IDENTITY_TRAITS(std::weak_ptr<df::widget_container>);
61+
OPAQUE_IDENTITY_TRAITS(wchar_t*);
6062

6163
const buffer_container_identity buffer_container_identity::base_instance;
6264

library/include/DataIdentity.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,10 @@ namespace df
617617
INTEGER_IDENTITY_TRAITS(unsigned long);
618618
INTEGER_IDENTITY_TRAITS(long long);
619619
INTEGER_IDENTITY_TRAITS(unsigned long long);
620+
INTEGER_IDENTITY_TRAITS(wchar_t);
620621
FLOAT_IDENTITY_TRAITS(float);
621622
FLOAT_IDENTITY_TRAITS(double);
623+
OPAQUE_IDENTITY_TRAITS(wchar_t*);
622624
OPAQUE_IDENTITY_TRAITS(std::condition_variable);
623625
OPAQUE_IDENTITY_TRAITS(std::fstream);
624626
OPAQUE_IDENTITY_TRAITS(std::mutex);

0 commit comments

Comments
 (0)