summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Chisnall <dchisnall@pathscale.com>2012-03-22 17:02:29 +0000
committerDavid Chisnall <dchisnall@pathscale.com>2012-03-22 17:02:29 +0000
commitd48277e2a7749bd2555e0b75f30ed33225462429 (patch)
treebff54ad59db9bc125af9a76bba689a6c7636fd1a /src
parentcddcf8734ed06ada9384a461bc21d58b44f6eba1 (diff)
downloadlibcxxrt-d48277e2a7749bd2555e0b75f30ed33225462429.tar.gz
libcxxrt-d48277e2a7749bd2555e0b75f30ed33225462429.tar.bz2
libcxxrt-d48277e2a7749bd2555e0b75f30ed33225462429.tar.xz
Rearrange the virtual functions in type_info to match the gcc layout,
rather than the FreeBSD layout.
Diffstat (limited to 'src')
-rw-r--r--src/typeinfo.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/typeinfo.h b/src/typeinfo.h
index 8223977..6bfbf0b 100644
--- a/src/typeinfo.h
+++ b/src/typeinfo.h
@@ -70,6 +70,14 @@ namespace std
*/
public:
/**
+ * Returns true if this is some pointer type, false otherwise.
+ */
+ virtual bool __is_pointer_p() const { return false; }
+ /**
+ * Returns true if this is some function type, false otherwise.
+ */
+ virtual bool __is_function_p() const { return false; }
+ /**
* Catch function. Allows external libraries to implement
* their own basic types. This is used, for example, in the
* GNUstep Objective-C runtime to allow Objective-C types to be
@@ -95,14 +103,6 @@ namespace std
{
return false;
}
- /**
- * Returns true if this is some pointer type, false otherwise.
- */
- virtual bool __is_pointer_p() const { return false; }
- /**
- * Returns true if this is some function type, false otherwise.
- */
- virtual bool __is_function_p() const { return false; }
};
}