-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/40631/
-----------------------------------------------------------
(Updated Dec. 4, 2015, 3:11 p.m.)
Review request for mesos, Benjamin Bannier, Joseph Wu, and Michael Park.
Changes
-------
Move `using` into .cpp files
Bugs: MESOS-3963
https://issues.apache.org/jira/browse/MESOS-3963
Repository: mesos
Description
-------
According to the google code style, the using should be used in internal
namespace in header files. Grep the header files, only fetcher.hpp deserved a
path.
> You may use a using-declaration anywhere in a .cc file (including in the
> global namespace), and in functions, methods, classes, or within internal
> namespaces in .h files.
>Do not use using-declarations in .h files except in explicitly marked
>internal-only namespaces, because anything imported into a namespace in a .h
>file becomes part of the public API exported by that file.
```
// OK in .cc files.
// Must be in a function, method, internal namespace, or
// class in .h files.
using ::foo::bar;
```
Diffs (updated)
-----
src/slave/containerizer/fetcher.hpp 78e7d14
src/slave/containerizer/fetcher.cpp 26df3d5
src/tests/fetcher_cache_tests.cpp fb0b3ba
src/tests/mesos.hpp 8d2d919
src/tests/mesos.cpp d42dab5
Diff: https://reviews.apache.org/r/40631/diff/
Testing
-------
make && make check
Thanks,
Klaus Ma