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

Use C++11-compliant string concatenation #659

Merged
merged 1 commit into from May 13, 2015
Merged

Conversation

smcv
Copy link
Contributor

@smcv smcv commented Apr 30, 2015

C++11 reserves syntax like X"foo" and "foo"X for future syntax like
L"a wide-char string", so concatenating macros with literals now
requires an intervening space. Fixes most, if not all, of #651.


Tested on Linux, so I could potentially have missed some instances of non-C++11-compliant concatenation in code specific to other platforms - compiling with MSVC in C++11 or C++14 mode would probably detect anything that's left.

@ensiform
Copy link
Member

MSVC doesn't have a mode for either 11 or 14. It just is or it isn't depending on the version. AFAIK.

C++11 reserves syntax like X"foo" and "foo"X for future syntax like
L"a wide-char string", so concatenating macros with literals now
requires an intervening space.
@smcv
Copy link
Contributor Author

smcv commented Apr 30, 2015

(pushed an updated version that does not include the commits from #658)

@smcv
Copy link
Contributor Author

smcv commented Apr 30, 2015

MSVC doesn't have a mode for either 11 or 14. It just is or it isn't depending on the version. AFAIK.

Ah, OK, I'd misunderstood #651. In that case, the way to detect whether there's anything left to do is for @eezstreet to compile on whatever the relevant version is :-)

xycaleth added a commit that referenced this pull request May 13, 2015
Use C++11-compliant string concatenation
@xycaleth xycaleth merged commit feedf20 into JACoders:master May 13, 2015
@smcv smcv deleted the cxx11 branch July 29, 2015 09:50
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

Successfully merging this pull request may close these issues.

None yet

3 participants