Skip to content

Commit

Permalink
Requires C++11 from header.
Browse files Browse the repository at this point in the history
* Remove -std=c++11 from CXXFLAGS but require c++11 in the
  compact_iterator.hpp.
  • Loading branch information
gmarcais committed Feb 20, 2023
1 parent d80d685 commit 04c7f29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AM_CXXFLAGS = -Wall -Werror -std=c++11 -I$(top_srcdir)/include -I$(top_srcdir)/tests
AM_CXXFLAGS = -Wall -Werror -I$(top_srcdir)/include -I$(top_srcdir)/tests

pkginclude_HEADERS = include/compact_iterator.hpp \
include/compact_vector.hpp \
Expand Down
4 changes: 4 additions & 0 deletions include/compact_iterator.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#ifndef __COMPACT_ITERATOR_H__
#define __COMPACT_ITERATOR_H__

#if __cplusplus < 201103L
#error C++ versions less than C++11 are not supported.
#endif

#include <iterator>
#include <memory>
#include <type_traits>
Expand Down

0 comments on commit 04c7f29

Please sign in to comment.