summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorWolfgang Draxinger <dw@optores.de>2019-07-04 20:06:23 +0200
committerWolfgang Draxinger <dw@optores.de>2019-07-04 20:06:23 +0200
commit47d2c53cbdb8c03a793d54324eb0b0a127c73a4a (patch)
tree65b2ba97627f9d2c96581909f2466fe08e3658be /example
parentac1e78efa910cac81d104a92ec971d984dcd26a1 (diff)
downloaddwu-47d2c53cbdb8c03a793d54324eb0b0a127c73a4a.tar.gz
dwu-47d2c53cbdb8c03a793d54324eb0b0a127c73a4a.tar.bz2
compile examples -Wall -Werror and remove std::move to allow copy elision
Diffstat (limited to 'example')
-rw-r--r--example/Makefile2
-rw-r--r--example/operators.cc3
2 files changed, 3 insertions, 2 deletions
diff --git a/example/Makefile b/example/Makefile
index f26d3df..c96a553 100644
--- a/example/Makefile
+++ b/example/Makefile
@@ -1,4 +1,4 @@
-CXXFLAGS+=-I../include
+CXXFLAGS+=-Wall -Werror -I../include
.PHONY: all
diff --git a/example/operators.cc b/example/operators.cc
index cfcd529..d225303 100644
--- a/example/operators.cc
+++ b/example/operators.cc
@@ -1,9 +1,10 @@
+#include <dwu/operators>
+
#include <iostream>
#include <vector>
#include <list>
-#include <dwu/operators>
template<class S, class T>
static void dump(S const &s, T const &v)