diff --git a/meson.build b/meson.build index 81d5e7a..a268d67 100644 --- a/meson.build +++ b/meson.build @@ -3,7 +3,7 @@ project( 'hack', 'cpp', version : '0.0.1', - default_options : ['cpp_std=c++2a'] + default_options : ['cpp_std=c++20'] ) add_project_arguments ( diff --git a/src/iterators/associative_ostream_iterator.hpp b/src/iterators/associative_ostream_iterator.hpp index 432f6d5..7834660 100644 --- a/src/iterators/associative_ostream_iterator.hpp +++ b/src/iterators/associative_ostream_iterator.hpp @@ -5,8 +5,9 @@ namespace hack::iterators { template - class associative_ostream_iterator : public std::iterator + class associative_ostream_iterator { + using iterator_category = std::output_iterator_tag; using traits = std::char_traits; using ostream_type = std::basic_ostream; diff --git a/src/iterators/sequence_ostream_iterator.hpp b/src/iterators/sequence_ostream_iterator.hpp index 5de87b1..afe78da 100644 --- a/src/iterators/sequence_ostream_iterator.hpp +++ b/src/iterators/sequence_ostream_iterator.hpp @@ -5,8 +5,9 @@ namespace hack::iterators { template - class sequence_ostream_iterator : public std::iterator + class sequence_ostream_iterator { + using iterator_category = std::output_iterator_tag; using traits = std::char_traits; using ostream_type = std::basic_ostream; diff --git a/src/math/matrix.hpp b/src/math/matrix.hpp index 86a0249..1d97c33 100644 --- a/src/math/matrix.hpp +++ b/src/math/matrix.hpp @@ -4,6 +4,7 @@ #include #include #include +#include namespace hack::matrix_utils {