Skip to content

Commit

Permalink
c++11: MOVEONLY: break circular dependency in wallet
Browse files Browse the repository at this point in the history
c++11 (libc++'s stdlib implementation anyway) doesn't allow for map types to be
forward-declared. for example:

class foo;
std::map<int, foo> bar; // error, foo has not been defined.
class foo{};

Since CWallet and CWalletTx are inter-dependent, but only std::map<*,CWalletTx>
is used, forward-declare CWallet instead and define CWalletTx first.

Despite the mangled git diff, this change only amounts to moving ~320 lines in
a single chunk.
  • Loading branch information
theuni committed Feb 4, 2015
1 parent bbacd88 commit 3447cf8
Showing 1 changed file with 494 additions and 496 deletions.
Loading

0 comments on commit 3447cf8

Please sign in to comment.