ilmola / generator

A procedural geometry generation library for C++11
GNU Lesser General Public License v2.1
211 stars 26 forks source link

Error when building the library on OS X C++11 #26

Open Bambofy opened 1 year ago

Bambofy commented 1 year ago

Hi, trying to build generator on OS X using C++11 fails with this error...

In file included from /Users/r/Documents/Development/C++/generator-master/src/EmptyPath.cpp:8: In file included from /Users/r/Documents/Development/C++/generator-master/include/generator/EmptyPath.hpp:10: /Users/r/Documents/Development/C++/generator-master/include/generator/Iterator.hpp:35:33: error: no type named 'input_iterator_tag' in namespace 'std' using iterator_category = std::input_iterator_tag;


1 error generated.

/Users/r/Documents/Development/C++/generator-master/include/generator/Iterator.hpp:35:33: No type named 'input_iterator_tag' in namespace 'std'

I think that it has something to do with iterators being deprecated but i don't know. All help is welcome, thank you !

onehundredfeet commented 6 months ago

I'm having the same issue, but looks like it hasn't been addressed.

onehundredfeet commented 6 months ago

Add

#include <iterator>

to the header