Skip to content

Missing operator +() implementation after : String: compatibility with 64 bits scalars (#7863) #7885

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

Closed
5 of 6 tasks
blue-wind-25 opened this issue Feb 18, 2021 · 4 comments · Fixed by #7888
Closed
5 of 6 tasks
Assignees
Milestone

Comments

@blue-wind-25
Copy link

blue-wind-25 commented Feb 18, 2021

Basic Infos

  • This issue complies with the issue POLICY doc.
  • I have read the documentation at readthedocs and the issue is not addressed there.
  • I have tested that the issue is present in current master branch (aka latest git).
  • I have searched the issue tracker for a similar issue.
  • If there is a stack dump, I have decoded it.
  • I have filled out all fields below.

Platform

  • Hardware: [All]
  • Core Version: [483519f]
  • Development Env: [All]
  • Operating System: [All]

Settings in IDE

  • Module: [All]
  • Flash Mode: [N/A]
  • Flash Size: [N/A]
  • lwip Variant: [N/A]
  • Reset Method: [N/A]
  • Flash Frequency: [N/A]
  • CPU Frequency: [N/A]
  • Upload Using: [N/A]
  • Upload Speed: [N/A]

Problem Description

In WString.h there are new friend functions:

   friend StringSumHelper &operator +(const StringSumHelper &lhs, long long num);
   friend StringSumHelper &operator +(const StringSumHelper &lhs, unsigned long long num);

The function implementations seem to be missing from WString.cpp

@earlephilhower
Copy link
Collaborator

@blue-wind-25 do you have a snippet that causes a compilation error? Please post it so we have a good MCVE.

@blue-wind-25
Copy link
Author

@earlephilhower no, because those functions are not actually used by any of the Arduino esp8266 core or library code.

I follow the repository because I use it as a refererence in my customized library that use different built system.

When I browsed the Arduino commit change, I found that those functions are declared, but seems to be not defined anywhere. So, it is not an actual bug report, but more like an information. I am sorry if this is the wrong place for this kind of information.

@earlephilhower
Copy link
Collaborator

No, it's a bug if we declare a function that's never implemented! Thanks for the notice! I was just hoping to have a premade test case to verify the fix.

@earlephilhower earlephilhower added this to the 3.0.0 milestone Feb 19, 2021
@blue-wind-25
Copy link
Author

@earlephilhower You are welcome :-)

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 a pull request may close this issue.

3 participants