Skip to content

clang gives signed/unsigned conversion warning #3

Description

@PeterSommerlad

Expected Behavior

cute headers compile without warnings

Actual Behavior

/Users/sop/Documents/C++WG21/public_repos/scope17/cevelop-workspace/scope17/cute/cute_runner.h:96:28: warning: implicit conversion changes signedness: 'int' to 'std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >::size_type' (aka 'unsigned long') [-Wsign-conversion]
                        args.reserve(argc-1);

/Users/sop/Documents/C++WG21/public_repos/scope17/cevelop-workspace/scope17/cute/cute_runner.h:112:16: warning: implicit conversion changes signedness: 'typename iterator_traits<__wrap_iter<const test *> >::difference_type' (aka 'long') to 'size_t' (aka 'unsigned long') [-Wsign-conversion]
                                count_if(s.begin(),s.end(),boost_or_tr1::bind(&runner_aux::ArgvTestFilter::shouldRun,filter,boost_or_tr1::bind(&test::name,_1))));
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CUTE or CUTE Eclipse Plug-in Version, Operating System and Compiler

cute headers 2.2.1

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions