-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
[MSVC] Compilation error, unable to resolve operator overload of ctpg::stdex::cbitset<N>::operator==
#76
Comments
The msvc support is the main time sink in this project. It takes 80% of the time to come up with workarounds just to make things compile. Not sure why the main branch is reporting no issues on github actions in msvc, maybe the compiler is different. What exactly are you trying to build here? |
This is my current code. The error is indicated by the ///////////////////////////////////////////////////////////////////////////
static constexpr ctpg::nterm<bool> conditionExpression{"condition"};
static constexpr char integerPattern[] = "[-+]?[0-9]+";
static constexpr ctpg::regex_term<integerPattern> integerValue{"integer"};
static constexpr ctpg::char_term trueLiteral{'t'};
static constexpr ctpg::char_term falseLiteral{'f'};
///////////////////////////////////////////////////////////////////////////
static constexpr auto root = conditionExpression;
///////////////////////////////////////////////////////////////////////////
static constexpr auto terminals = ctpg::terms(
integerValue,
't',
'f'
);
///////////////////////////////////////////////////////////////////////////
static constexpr auto nonTerminals = ctpg::nterms(
conditionExpression
);
///////////////////////////////////////////////////////////////////////////
static constexpr ctpg::parser parser{
root,
terminals,
nonTerminals,
rules(
conditionExpression(trueLiteral) >=
[](const auto&) { return true; },
conditionExpression(falseLiteral) >=
[](const auto&) { return false; }
)
}; |
Oh, i tried to compile it with GCC, and it says:
|
Oh, you are supposed to use c++17. |
Okay thank you, are there plans to upgrade to C++20 at any time? |
Sure, but keep in mind I'm just another Nebraska dude: |
Hello,
I'm trying to build the main branch with MSVC 19.39 on Windows 11. But the build is resulting in the following error.
I also tried building the release 1.3.7 which worked without problems.
The text was updated successfully, but these errors were encountered: