thelartians / easyiterator Goto Github PK
View Code? Open in Web Editor NEW๐ Iterators made easy! Zero cost abstractions for designing and using C++ iterators.
License: MIT License
๐ Iterators made easy! Zero cost abstractions for designing and using C++ iterators.
License: MIT License
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.