-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Fix: using udl::operator "" _ #865
Conversation
The following error started appearing `error: missing space between ‘""’ and suffix identifier -- using udl::operator ""_;`. Compiler -- `powerpc-fsl-linux-g++ (GCC) 4.9.2` (compiler for powerpc architecture) C++ version: --std=c++11
@x4t3a, thanks for the pull request. The real cause of this problem is the clangformat setting
I'll find a setting that can avoid the particular behavior of clangformat. Thanks. |
@yhirose, I've tried running your clang-format config in this online formatter and it seems ok. There are several versions there to try on. What version do you use? |
@x4t3a, mine is installed via home brew on macOS. Here is the version.
Also the line 2271 has the same issue. |
@x4t3a, when you have time, could you try this solution for old gcc compilers? If this workaround works on your environment, I'll put it in httplib.h. Thanks for your help! |
@yhirose, alright, I'll try it. Thank you! :) |
I'll close it for now. |
@yhirose Thanks for your answer. I also encountered this problem. I am a C++ newbie. Do you mind telling me what is the minimum g++ standard to solve this problem? |
The following error started appearing
error: missing space between ‘""’ and suffix identifier -- using udl::operator ""_;
.Compiler:
powerpc-fsl-linux-g++ (GCC) 4.9.2
(compiler for powerpc architecture)C++ version:
--std=c++11
Easy fix by adding spaces :)