Skip to content

Conversation

Thomas-Barbier-1A
Copy link
Contributor

…is not a member of 'std'

@Thomas-Barbier-1A
Copy link
Contributor Author

Note: maybe this is related to my particular environment but I was having the following compiling issues:
/remote/users/tbarbier/tmp_ospack/16_repo_open-source-pack/prometheus-cpp/rpm-bms-scripts/BUILD/prometheus-cpp-0.3/lib/text_serializer.cc:131:18: error: 'numeric_limits' is not a member of 'std'
double last = -std::numeric_limits::infinity();
^
/remote/users/tbarbier/tmp_ospack/16_repo_open-source-pack/prometheus-cpp/rpm-bms-scripts/BUILD/prometheus-cpp-0.3/lib/text_serializer.cc:131:38: error: expected primary-expression before 'double'
double last = -std::numeric_limits::infinity();
^
/remote/users/tbarbier/tmp_ospack/16_repo_open-source-pack/prometheus-cpp/rpm-bms-scripts/BUILD/prometheus-cpp-0.3/lib/text_serializer.cc:139:15: error: 'numeric_limits' is not a member of 'std'
if (last != std::numeric_limits::infinity()) {
^
/remote/users/tbarbier/tmp_ospack/16_repo_open-source-pack/prometheus-cpp/rpm-bms-scripts/BUILD/prometheus-cpp-0.3/lib/text_serializer.cc:139:35: error: expected primary-expression before 'double'
if (last != std::numeric_limits::infinity()) {
^

@gjasny gjasny merged commit a97127c into jupp0r:master Apr 18, 2018
@gjasny
Copy link
Collaborator

gjasny commented Apr 18, 2018

The <limits> was definitely missing.

Thanks for your contribution!

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.

2 participants