Set default TypeId size.

This commit is contained in:
Peter D. Barnes, Jr. committed 2014-10-08 21:04:32 -07:00
1 parent 3f92b8e1c5
commit dd7996b57d
2 files changed
+4

No files matched your search

+1
View File
@@ -215,6 +215,7 @@ IidManager::AllocateUid (std::string name)
information.hash = hash;
information.parent = 0;
information.groupName = "";
information.size = (std::size_t)(-1);
information.hasConstructor = false;
information.mustHideFromDocumentation = false;
m_information.push_back (information);
+3
View File
@@ -252,6 +252,9 @@ public:
* \code
* SetSize (sizeof (<typename>));
* \endcode
* This is done automatically by NS_LOG_ENSURE_REGISTERED()
* A ridiculously large reported size is a symptom that the
* type hasn't been registered.
*
* \param size The size of the object, in bytes.
* \returns this TypeId instance.