Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional support for default value for NULL string values #417

Closed
nick42 opened this issue Nov 9, 2016 · 1 comment
Closed

Optional support for default value for NULL string values #417

nick42 opened this issue Nov 9, 2016 · 1 comment

Comments

@nick42
Copy link

nick42 commented Nov 9, 2016

I don't know if this is of-interest, but...

I've written a local customization to allow a default value of "(null)" to be used when NULL string values are specified (in keeping with the default handling of such for CString on Windows). I did it was an optional #define to activate, such that it would have no performance/other impact in the "normal" usage case. The code probably isn't as clean as it could be, but I thought I'd post it, in case there is any interest in incorporating something similar into the main project, and/or anyone else finds it useful.

I'll attach the diff, generated from the local git repo, for reference.

diff.txt

@vitaut
Copy link
Contributor

vitaut commented Nov 9, 2016

Thanks for the diff. I'm not sure if it is worth including in the core library, but maybe someone will find it useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants