Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Unified Diff: mojo/public/cpp/bindings/lib/template_util.h

Issue 923033003: Implement unions as members of structs. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/cpp/bindings/lib/template_util.h
diff --git a/mojo/public/cpp/bindings/lib/template_util.h b/mojo/public/cpp/bindings/lib/template_util.h
index a90ee442747a043102ac4e809baa75cbe33aba5e..9a5788ce85d6537cf5cba289025cfdd7befad53a 100644
--- a/mojo/public/cpp/bindings/lib/template_util.h
+++ b/mojo/public/cpp/bindings/lib/template_util.h
@@ -100,7 +100,9 @@ struct IsBaseOf {
};
template <class T>
-struct RemovePointer {};
+struct RemovePointer {
+ typedef T type;
viettrungluu 2015/03/04 20:58:13 This is probably right (since it matches[*] the C+
azani 2015/03/05 23:59:25 Yes. Grepping revealed only one use of RemovePoint
+};
template <class T>
struct RemovePointer<T*> {
typedef T type;

Powered by Google App Engine
This is Rietveld 408576698