-
Notifications
You must be signed in to change notification settings - Fork 7
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
too few template aruments #357
Comments
@Michael-Lafreniere |
The previous project was was compiled with C++20. I just created a brand new console project using all the default settings. I downloaded https://github.com/fktn-k/fkYAML/blob/develop/single_include/fkYAML/node.hpp directly into the folder and tried to compile it. node.hpp(8668,9): error C2976: 'fkyaml::v0_3_8::node_value_converter': too few template arguments Unless I'm missing something big here? The single header should work standalone without having to clone the project correct (I want the whole thing I'm just testing right now since mine worked fine 3 days ago, but when I updated it broke.) |
@Michael-Lafreniere Although I can't tell what the root cause is, building fkYAML on Windows with C++20 or newer somehow ignores the default template parameter for node_value_converter and the compiler emits the errors. |
Yes, that fixed it in both the quick test I put together and my other two projects. Awesome work and thank you for the fast replies! |
@Michael-Lafreniere |
Description
Just including the node.hpp file (nothing else) generates two errors in visual studio 2022 Version 17.10.1.
The first one: error C2976: 'fkyaml::v0_3_8::node_value_converter': too few template arguments
The second one: error C2955: 'fkyaml::v0_3_8::node_value_converter': use of class template requires template argument list
I verified this by just downloading the standalone header into a project that compiles cleanly and adding the node.hpp file into its source files, then including it.
Reproduction steps
#include <fkYAML/node.hpp>
Expected vs. actual results
I expected it to compile cleanly when merely including the header file(s).
Minimal code example
No response
Error messages
Compiler and operating system
Windows 10, Visual Studios 2022 version 17.10.1
Library version
0.3.8
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: