From 5ea6cd6622dbcbd8963c169258eff1ad291e7ebd Mon Sep 17 00:00:00 2001 From: lkskstlr Date: Wed, 30 Aug 2017 16:06:43 +0200 Subject: [PATCH] Included posix_time header in test. Changed Example accordingly (#149). --- exercises/gigasecond/example.cpp | 1 + exercises/gigasecond/example.h | 4 +++- exercises/gigasecond/gigasecond_test.cpp | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/exercises/gigasecond/example.cpp b/exercises/gigasecond/example.cpp index 7ce9c4c3..63951fb1 100644 --- a/exercises/gigasecond/example.cpp +++ b/exercises/gigasecond/example.cpp @@ -1,4 +1,5 @@ #include "gigasecond.h" +#include "boost/date_time/posix_time/posix_time_types.hpp" namespace gigasecond { diff --git a/exercises/gigasecond/example.h b/exercises/gigasecond/example.h index 71a79dd8..30221cf4 100644 --- a/exercises/gigasecond/example.h +++ b/exercises/gigasecond/example.h @@ -1,7 +1,9 @@ #if !defined(GIGASECOND_H) #define GIGASECOND_H -#include +namespace boost{ namespace posix_time{ +class ptime; +} } namespace gigasecond { diff --git a/exercises/gigasecond/gigasecond_test.cpp b/exercises/gigasecond/gigasecond_test.cpp index 3770574b..57a60525 100644 --- a/exercises/gigasecond/gigasecond_test.cpp +++ b/exercises/gigasecond/gigasecond_test.cpp @@ -1,5 +1,6 @@ #include "gigasecond.h" #define BOOST_TEST_MAIN +#include #include // See