tl;dr
It is pretty neat, as:
- Common/platform specific functions reside in the correct namespaces;
- Different platform can override different sets of functions seamlessly;
- Same trick works with template functions;
- And with template type definitions (via C++ 11 using syntax);
- Common implementations are still available in the original namespace to test again platform-specific code;
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.