Use user-defined literal for k, m, and g (powers of 1024)

This commit is contained in:
Tatsuhiro Tsujikawa 2015-06-21 18:04:30 +09:00
parent 8ba9b04747
commit 318c804504
99 changed files with 482 additions and 453 deletions

View file

@ -34,7 +34,7 @@ public:
dctx_ = make_unique<DownloadContext>();
peer_ = std::make_shared<Peer>("192.168.0.1", 6969);
peer_->allocateSessionResource(1024, 1024*1024);
peer_->allocateSessionResource(1_k, 1_m);
peer_->setExtendedMessagingEnabled(true);
exmsgFactory_ = std::make_shared<MockExtensionMessageFactory>();