Skip to content

correct docstring for Value::isString#7

Open
tnovotny wants to merge 2 commits intoWhiZTiM:masterfrom
tnovotny:master
Open

correct docstring for Value::isString#7
tnovotny wants to merge 2 commits intoWhiZTiM:masterfrom
tnovotny:master

Conversation

@tnovotny
Copy link

No description provided.

@WhiZTiM WhiZTiM self-assigned this Sep 12, 2017
Copy link
Owner

@WhiZTiM WhiZTiM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this pull request. I have reviewed and I am ready to merge it just right after we resolve a few items.

  • The documentation fix is awesome, and we are good to go there.

  • Including <iso646.h> header feels hackish. The alternative tokens such as and, or, etc are defined in the <iso646.h> header as MACROS. This was introduced in C95 (a ISO amendment of C89 standard)... So in "C" mode the header is necessary for the C alternative "keywords".

    However, in C++, they are keywords. And such header isn't necessary. Albeit, MSVC is notorious for non-standards compliance. MSVC disables the alternative keywords as an extension; To enable it, we require the /Za compiler flag. See MSVC Alternative tokens.

    Evidently, my CMake skills were pretty bad when I wrote the CMake file for this project, I will work on improving it.
    .So, does compiling the project with the /Za flag work for you?
    .Or do we just change change all occurences of and and or to && and || respectively?

#include <unordered_map>
#include <map>
#include <initializer_list>
#include <iso646.h>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably superfluous, since #include <iso646.h> already included in types.hpp which is included in this file. See line 55

#include <cstring>
#include <algorithm>
#include <iostream>
#include <iso646.h>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here,...

@tnovotny
Copy link
Author

/Za works. Will remove the <iso464.h> from the pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants