diff options
author | Adrian Kummerlaender | 2016-04-02 21:51:57 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2016-04-02 21:51:57 +0200 |
commit | a5a81425f4e656ecf0e867e114863b1b208e90b0 (patch) | |
tree | 364b7ef1bb640c87f3f8cbb7547754ed7f28434d /justify.cc | |
parent | 59bfdf3b83119c9e5e29f94362307b7e8a3df43a (diff) | |
download | justify-a5a81425f4e656ecf0e867e114863b1b208e90b0.tar justify-a5a81425f4e656ecf0e867e114863b1b208e90b0.tar.gz justify-a5a81425f4e656ecf0e867e114863b1b208e90b0.tar.bz2 justify-a5a81425f4e656ecf0e867e114863b1b208e90b0.tar.lz justify-a5a81425f4e656ecf0e867e114863b1b208e90b0.tar.xz justify-a5a81425f4e656ecf0e867e114863b1b208e90b0.tar.zst justify-a5a81425f4e656ecf0e867e114863b1b208e90b0.zip |
Move `LineAccumulator` closure into `justify` project namespace
Diffstat (limited to 'justify.cc')
-rw-r--r-- | justify.cc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -6,10 +6,10 @@ int main() { std::cout.sync_with_stdio(false); std::cin.sync_with_stdio(false); - LineAccumulator acc{60}; - std::string word; + justify::LineAccumulator acc{60}; + std::string token; - while ( std::cin >> word ) { - acc(word); + while ( std::cin >> token ) { + acc(token); } } |