Created
June 28, 2017 16:21
-
-
Save wangkuiyi/0bb245a71d3dcfc77e1e4d6961023033 to your computer and use it in GitHub Desktop.
Give StringAppendF a C++ style name string::AppendF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
namespace strings { | |
void Print() { | |
std::cout << "strings::Print" << std::endl; | |
} | |
} // namespace strings | |
namespace uses { | |
namespace detail { | |
void Log() { | |
strings::Print(); // My point is here! | |
} | |
} // namespace detail | |
} // namespace uses | |
int main() { | |
uses::detail::Log(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment