GithubHelp home page GithubHelp logo

cpp-lazy's People

Contributors

friendlyanon avatar marcdirven avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cpp-lazy's Issues

still support gcc5?

Does cpp-lazy support gcc5?
I met compilation error in gcc 5.4.0:

In file included from xxx/include/Lz/Map.hpp:6:0,
xxx/include/Lz/detail/BasicIteratorView.hpp:642:34: error: expected type-specifier before ‘MAKE_BIN_OP’
          class BinaryPredicate = MAKE_BIN_OP(std::equal_to, internal::ValueTypeIterable<IterableA>)>
                                  ^
xxx/include/Lz/detail/BasicIteratorView.hpp:642:34: error: expected ‘>’ before ‘MAKE_BIN_OP’

I already confirmed cpp-lazy works fine gcc 6.4.0 or later.

Always random acces iterator for zip

Currently the iterator_tag is always random_acces but should be one of the containers' iterator tags. The zip function however does work fine but functionality that requires std::random_acces_iterator while the underlying container is not, then the program will not compile. This only applies to the following STL containers:

  • std::list and std::forward_list
  • std::map and its equivalents
  • std::queue and its equivalents
  • std::set and its equivalents

One can still iterate over these containers using the lz::zip function, but one cannot use the following operators on the iterator itself:

  • operator>, <, <=, >=

Extend CI workflow

Right now the CI workflow only runs on Ubuntu and whatever default compiler it comes set up with.

I'd like to get some feedback on what are desirable compilers and what version(s) of them would you like to have running in CI?

Also, if the CI workflow will be extended to many OSs and compiler versions, I believe that only a single job should be dedicated to running tests with the default compiler, where the library is installed and imported using find_package.

Make concat iterator accept parameter pack of iterables

The concat iterator only accepts two arguments: a and b. This can be increased by using a parameter pack.

Example:

vector a = {1, 2, 3, 4, 5};
vector b = {1, 2, 3, 4, 5};
vector c = {1, 2, 3, 4, 5};

for (int i : lz::concat(a, b, c)) {}

instead of:

vector a = {1, 2, 3, 4, 5};
vector b = {1, 2, 3, 4, 5};
vector c = {1, 2, 3, 4, 5};

for (int i : lz::concat(lz::concat(a, b), c)) {}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.