Giter Site home page Giter Site logo

thelartians / easyiterator Goto Github PK

View Code? Open in Web Editor NEW
134.0 7.0 8.0 75 KB

๐Ÿƒ Iterators made easy! Zero cost abstractions for designing and using C++ iterators.

License: MIT License

CMake 34.51% C++ 65.49%
cpp cplusplus iterators range enumerate reverse simple next advance pythonic

easyiterator's People

Contributors

thelartians 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  avatar  avatar

easyiterator's Issues

Build fails on Windows

Hey Lars,
I'm having some trouble building a project with EasyIterator as a dependency on Windows.

Can you please take a look at the build log and see what's going on?
Project

Build log:

Run cmake --build build --config Debug -j4
Microsoft (R) Build Engine version 16.10.0+4242f381a for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking File Globs
  Checking Build System
  Building Custom Rule D:/a/CSES-Solutions/CSES-Solutions/cpm_modules/fmt/9dd47b889fbf7c876d24be56ca097a884004b789/CMakeLists.txt
  Building Custom Rule D:/a/CSES-Solutions/CSES-Solutions/cpm_modules/spdlog/be9796fe42cf4cd102be04c44dd3c83ff2a4d1c0/CMakeLists.txt
  format.cc
  spdlog.cpp
  os.cc
  Generating Code...
  fmt.vcxproj -> D:\a\CSES-Solutions\CSES-Solutions\build\_deps\fmt-build\Debug\fmtd.lib
  stdout_sinks.cpp
  color_sinks.cpp
  file_sinks.cpp
  async.cpp
  cfg.cpp
  fmt.cpp
  Generating Code...
  spdlog.vcxproj -> D:\a\CSES-Solutions\CSES-Solutions\build\_deps\spdlog-build\Debug\spdlogd.lib
  Building Custom Rule D:/a/CSES-Solutions/CSES-Solutions/CMakeLists.txt
  1-WeirdAlgorithm.cxx
  2-MissingNumber.cxx
  3-Repetitions.cxx
  4-IncrasingArray.cxx
D:\a\CSES-Solutions\CSES-Solutions\source\Introductory\4-IncrasingArray.cxx(18,20): error C2672: 'easy_iterator::range': no matching overloaded function found [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\source\Introductory\4-IncrasingArray.cxx(18,42): error C2780: 'auto easy_iterator::range(T)': expects 1 arguments - 2 provided [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\cpm_modules\easyiterator\034d91a47fb6cf2163274c9d60443f6cff409feb\include\easy_iterator.h(320): message : see declaration of 'easy_iterator::range' [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\source\Introductory\4-IncrasingArray.cxx(18,42): error C2782: 'auto easy_iterator::range(T,T)': template parameter 'T' is ambiguous [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\cpm_modules\easyiterator\034d91a47fb6cf2163274c9d60443f6cff409feb\include\easy_iterator.h(315): message : see declaration of 'easy_iterator::range' [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\source\Introductory\4-IncrasingArray.cxx(18,42): message : could be 'unsigned __int64' [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\source\Introductory\4-IncrasingArray.cxx(18,42): message : or       'unsigned long' [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\source\Introductory\4-IncrasingArray.cxx(18,42): error C2784: 'auto easy_iterator::range(T,T)': could not deduce template argument for 'T' from 'unsigned __int64' [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\cpm_modules\easyiterator\034d91a47fb6cf2163274c9d60443f6cff409feb\include\easy_iterator.h(315): message : see declaration of 'easy_iterator::range' [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\source\Introductory\4-IncrasingArray.cxx(18,42): error C2780: 'auto easy_iterator::range(T,T,T)': expects 3 arguments - 2 provided [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\cpm_modules\easyiterator\034d91a47fb6cf2163274c9d60443f6cff409feb\include\easy_iterator.h(307): message : see declaration of 'easy_iterator::range' [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\source\Introductory\4-IncrasingArray.cxx(18,2): error C3531: 'i': a symbol whose type contains 'auto' must have an initializer [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\source\Introductory\4-IncrasingArray.cxx(18,14): error C2143: syntax error: missing ';' before ':' [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\source\Introductory\4-IncrasingArray.cxx(18,2): error C2780: 'auto easy_iterator::range(T)': expects 1 arguments - 2 provided [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\cpm_modules\easyiterator\034d91a47fb6cf2163274c9d60443f6cff409feb\include\easy_iterator.h(320): message : see declaration of 'easy_iterator::range' [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\source\Introductory\4-IncrasingArray.cxx(18,2): error C2782: 'auto easy_iterator::range(T,T)': template parameter 'T' is ambiguous [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\cpm_modules\easyiterator\034d91a47fb6cf2163274c9d60443f6cff409feb\include\easy_iterator.h(315): message : see declaration of 'easy_iterator::range' [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\source\Introductory\4-IncrasingArray.cxx(18,2): message : could be 'unsigned __int64' [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\source\Introductory\4-IncrasingArray.cxx(18,2): message : or       'unsigned long' [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\source\Introductory\4-IncrasingArray.cxx(18,2): error C2784: 'auto easy_iterator::range(T,T)': could not deduce template argument for 'T' from 'unsigned __int64' [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\cpm_modules\easyiterator\034d91a47fb6cf2163274c9d60443f6cff409feb\include\easy_iterator.h(315): message : see declaration of 'easy_iterator::range' [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\source\Introductory\4-IncrasingArray.cxx(18,2): error C2780: 'auto easy_iterator::range(T,T,T)': expects 3 arguments - 2 provided [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\cpm_modules\easyiterator\034d91a47fb6cf2163274c9d60443f6cff409feb\include\easy_iterator.h(307): message : see declaration of 'easy_iterator::range' [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
D:\a\CSES-Solutions\CSES-Solutions\source\Introductory\4-IncrasingArray.cxx(18,42): error C2143: syntax error: missing ';' before ')' [D:\a\CSES-Solutions\CSES-Solutions\build\_deps\cses-build\CSES.vcxproj]
  Generating Code...
Error: Process completed with exit code 1.

Feedback

I realize an issue isn't exactly the right place for this, but I just wanted to say that this is one of the most useful repos I've integrated into my projects, and it really deserves more stars. Thank you so much for writing this! I've used it for years and it's gotten me out of all sorts of binds.

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.