Skip to content

Instantly share code, notes, and snippets.

@wangkuiyi
Created June 28, 2017 16:21
Show Gist options
  • Save wangkuiyi/0bb245a71d3dcfc77e1e4d6961023033 to your computer and use it in GitHub Desktop.
Save wangkuiyi/0bb245a71d3dcfc77e1e4d6961023033 to your computer and use it in GitHub Desktop.
Give StringAppendF a C++ style name string::AppendF
#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