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

Failing tests #22

Closed
ajpmaclean opened this issue Jun 4, 2019 · 4 comments
Closed

Failing tests #22

ajpmaclean opened this issue Jun 4, 2019 · 4 comments
Assignees

Comments

@ajpmaclean
Copy link

These tests fail:

#include <test_parse_args.hpp>
#include <test_positional_arguments.hpp>
#include <test_compound_arguments.hpp>
#include <test_container_arguments.hpp>

Here are the errors and warnings. I'm using Visual Studio 2019 and I get similar errors in Ubuntu 19.04, GCC 8.3

argparse.hpp(444,1): warning C4456:  declaration of 'tCurrentArgument' hides previous local declaration
argparse.hpp(423,21): message :  see declaration of 'tCurrentArgument'
argparse.hpp(445,1): warning C4456:  declaration of 'tIterator' hides previous local declaration
argparse.hpp(434,23): message :  see declaration of 'tIterator'
argparse.hpp(132,23): warning C4018:  '<=': signed/unsigned mismatch
argparse.hpp(432): message :  see reference to function template instantiation 'Iterator argparse::Argument::consume<_InIt>(Iterator,Iterator,std::string)' being compiled
argparse.hpp(432): message :         with
argparse.hpp(432): message :         [
argparse.hpp(432): message :             Iterator=std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<std::string>>>,
argparse.hpp(432): message :             _InIt=std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types<std::string>>>
argparse.hpp(432): message :         ]
argparse.hpp(255,14): error C2672:  'std::transform': no matching overloaded function found
argparse.hpp(361): message :  see reference to function template instantiation 'std::vector<int,std::allocator<int>> argparse::Argument::get<T>(void) const' being compiled
argparse.hpp(361): message :         with
argparse.hpp(361): message :         [
argparse.hpp(361): message :             T=std::vector<int,std::allocator<int>>
argparse.hpp(361): message :         ]
argparse\test\test_parse_args.hpp(77): message :  see reference to function template instantiation 'T argparse::ArgumentParser::get<std::vector<int,std::allocator<int>>>(const std::string &)' being compiled
argparse\test\test_parse_args.hpp(77): message :         with
argparse\test\test_parse_args.hpp(77): message :         [
argparse\test\test_parse_args.hpp(77): message :             T=std::vector<int,std::allocator<int>>
argparse\test\test_parse_args.hpp(77): message :         ]
argparse.hpp(256,1): error C2783:  '_OutIt std::transform(const _InIt,const _InIt,_OutIt,_Fn)': could not deduce template argument for '_Fn'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\algorithm(1314): message :  see declaration of 'std::transform'
argparse.hpp(261,14): error C2672:  'std::transform': no matching overloaded function found
argparse.hpp(262,1): error C2783:  '_OutIt std::transform(const _InIt,const _InIt,_OutIt,_Fn)': could not deduce template argument for '_Fn'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\algorithm(1314): message :  see declaration of 'std::transform'
@p-ranav p-ranav self-assigned this Jun 4, 2019
@p-ranav
Copy link
Owner

p-ranav commented Jun 4, 2019

Hello. Are you using a specific release or are you using the latest from master?

@ajpmaclean
Copy link
Author

ajpmaclean commented Jun 4, 2019 via email

@p-ranav
Copy link
Owner

p-ranav commented Jun 5, 2019

Pushed a fix for this. Please test, confirm and close issue.

@ajpmaclean
Copy link
Author

Thankyou. Tested in VS2019 and GCC 8.3: All tests passed (107 assertions in 35 test cases)

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

No branches or pull requests

2 participants