diff options
author | John Wiegley <johnw@newartisans.com> | 2014-04-17 14:19:55 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2014-04-17 14:34:36 -0500 |
commit | 7be70aab59051aa358547a3e530cc95490c04232 (patch) | |
tree | a8127b99acc041d746d417528e4c6dcce00c5c5a /src | |
parent | 0ef825640963d60e4733553ff0e8c590c0ce2c3b (diff) | |
download | fork-ledger-7be70aab59051aa358547a3e530cc95490c04232.tar.gz fork-ledger-7be70aab59051aa358547a3e530cc95490c04232.tar.bz2 fork-ledger-7be70aab59051aa358547a3e530cc95490c04232.zip |
Require the use of C++11
Diffstat (limited to 'src')
-rw-r--r-- | src/journal.cc | 5 | ||||
-rw-r--r-- | src/system.hh.in | 2 | ||||
-rw-r--r-- | src/utils.h | 4 |
3 files changed, 2 insertions, 9 deletions
diff --git a/src/journal.cc b/src/journal.cc index 2512664f..804c9ee2 100644 --- a/src/journal.cc +++ b/src/journal.cc @@ -409,10 +409,9 @@ bool journal_t::add_xact(xact_t * xact) foreach (post_t * post, xact->posts) { account_t * acct = post->account; if (acct->deferred_posts) { - deferred_posts_map_t::iterator - i = acct->deferred_posts->find(uuid); + auto i = acct->deferred_posts->find(uuid); if (i != acct->deferred_posts->end()) { - foreach (post_t * rpost, (*i).second) + for (post_t * rpost : (*i).second) if (acct == rpost->account) acct->add_post(rpost); acct->deferred_posts->erase(i); diff --git a/src/system.hh.in b/src/system.hh.in index 952411f9..8f501587 100644 --- a/src/system.hh.in +++ b/src/system.hh.in @@ -56,8 +56,6 @@ #define Ledger_VERSION_PATCH @Ledger_VERSION_PATCH@ #define Ledger_VERSION_DATE @Ledger_VERSION_DATE@ -#define HAVE_CXX11 @HAVE_CXX11@ - #define HAVE_EDIT @HAVE_EDIT@ #define HAVE_GETTEXT @HAVE_GETTEXT@ diff --git a/src/utils.h b/src/utils.h index 95cc64fd..c3dcf562 100644 --- a/src/utils.h +++ b/src/utils.h @@ -485,11 +485,7 @@ inline void check_for_signal() { /*@{*/ #define foreach BOOST_FOREACH -#if HAVE_CXX11 using std::unique_ptr; -#else -#define unique_ptr std::auto_ptr -#endif namespace ledger { |