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

Support for long long #171

Closed
bblanchon opened this issue Dec 1, 2015 · 3 comments
Closed

Support for long long #171

bblanchon opened this issue Dec 1, 2015 · 3 comments
Assignees
Milestone

Comments

@bblanchon
Copy link
Owner

No description provided.

@bblanchon bblanchon added this to the 5.1 milestone Dec 1, 2015
@bblanchon bblanchon self-assigned this Feb 1, 2016
bblanchon added a commit that referenced this issue Feb 1, 2016
bblanchon added a commit that referenced this issue Feb 14, 2016
Moved all build settings to `ArduinoJson/Configuration.hpp`
Added AppVeyor settings in source tree
@bblanchon
Copy link
Owner Author

Fixed in 5.1.0

@cyberreefguru
Copy link

First - thanks so much for the amazing library. Totally rock solid! Kudos to you.

I just pulled the latest and tried to use use long long without any luck. I get some very odd c++ error I've never seen before;

ArduinoJson/include/ArduinoJson/Internals/../JsonVariant.hpp:153:3: error: no type named 'type' in 'struct ArduinoJson::TypeTraits::EnableIf<false, ArduinoJson::JsonObject&>'
In file included from /ArduinoJson/include/ArduinoJson/JsonObject.hpp:153:0,
from /ArduinoJson/include/ArduinoJson/JsonArray.ipp:11,
from /ArduinoJson/include/ArduinoJson/JsonArray.hpp:181,
from /ArduinoJson/include/ArduinoJson.h:9,
from /ArduinoJson/ArduinoJson.h:14,
from ../Command.h:15,
from ../Command.cpp:8:
/ArduinoJson/include/ArduinoJson/JsonObject.ipp: In member function 'T ArduinoJson::JsonObject::get(ArduinoJson::JsonObjectKey) const [with T = long long int]':
/ArduinoJson/include/ArduinoJson/JsonObject.ipp:25:1: warning: control reaches end of non-void function [-Wreturn-type]

I looked in the source and could not find support for "long long" in the template of the "as" method.

Do I need to define "ARDUINOJSON_USE_LONG_LONG" or something like that?

Any clues what I'm missing?

-Tom

@bblanchon
Copy link
Owner Author

Hi Tom,

You found a bug in the library or in your compiler (unlikely but possible).
Can you please open a new issue and specify the name, version and architecture of the compiler that you're using?

For your information, ArduinoJson is regularly tested on:

  1. GCC 4.6.3
  2. GCC 4.8.1
  3. GCC 4.9.2
  4. Clang 3.4.0
  5. Clang 3.6.2
  6. Apple Clang 7.0.2
  7. Visual Studio 2010
  8. Visual Studio 2012
  9. Visual Studio 2013
  10. Visual Studio 2010

Thanks for reporting this bug, this is of great help!

Regards.

Repository owner locked and limited conversation to collaborators Sep 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants