seomoz / rep-cpp

Robot exclusion protocol in C++
MIT License
12 stars 5 forks source link

Avoid temporary copy of Directives. #29

Closed b4hand closed 7 years ago

b4hand commented 7 years ago

This just makes very clear that we don't intend to copy the Directive object by value in the loop.

Also, it avoids calling the directives() method twice in the same context.

b4hand commented 7 years ago

Yes, that's correct. The only other invocation of directives() is in the tests.