Fixed problems reported by inspection program

This commit is contained in:
Antony Polukhin
2014-08-01 12:34:34 +04:00
parent 4d221d4f71
commit 7b04caa160
4 changed files with 24 additions and 8 deletions

View File

@ -73,12 +73,12 @@ int main() {
[table:id Table of names
[[Type] [RTTI & raw_name] [RTTI & pretty_name] [noRTTI & raw_name]]
[[User defined type][`17user_defined_type`] [`user_defined_type`] [`user_defined_type]`] ]
[[In anonymous namespace][`N12_GLOBAL__N_112in_anon_typeE`] [`(anonymous namespace)::in_anon_type`] [`{anonymous}::in_anon_type]`] ]
[[In ns3::{anonymous}::ns4 namespace][`N3ns312_GLOBAL__N_13ns412in_anon_typeE`] [`ns3::(anonymous namespace)::ns4::in_anon_type`] [`ns3::{anonymous}::ns4::in_anon_type]`] ]
[[Template class][`5templIsiE`] [`templ<short, int>`] [`templ<short int, int>]`] ]
[[Template class (full specialization)][`5templIiiE`] [`templ<int, int>`] [`templ<int, int>]`] ]
[[Template class with templae classes][`5templIS_IcaES_Ii17user_defined_typeEE`] [`templ<templ<char, signed char>, templ<int, user_defined_type> >`] [`templ<templ<char, signed char>, templ<int, user_defined_type> >]`] ]
[[User defined type][`17user_defined_type`] [`user_defined_type`] [`user_defined_type]`] ]
[[In anonymous namespace][`N12_GLOBAL__N_112in_anon_typeE`] [`(anonymous namespace)::in_anon_type`] [`{anonymous}::in_anon_type]`] ]
[[In ns3::{anonymous}::ns4 namespace][`N3ns312_GLOBAL__N_13ns412in_anon_typeE`] [`ns3::(anonymous namespace)::ns4::in_anon_type`] [`ns3::{anonymous}::ns4::in_anon_type]`] ]
[[Template class][`5templIsiE`] [`templ<short, int>`] [`templ<short int, int>]`] ]
[[Template class (full specialization)][`5templIiiE`] [`templ<int, int>`] [`templ<int, int>]`] ]
[[Template class with templae classes][`5templIS_IcaES_Ii17user_defined_typeEE`] [`templ<templ<char, signed char>, templ<int, user_defined_type> >`] [`templ<templ<char, signed char>, templ<int, user_defined_type> >]`] ]
]
We have not show the "noRTTI & pretty_name" column in the table becuse it is almost equal

View File

@ -77,10 +77,10 @@ template <class T>
inline const detail::ctti_data& ctti_construct() BOOST_NOEXCEPT {
// Standard C++11, 5.2.10 Reinterpret cast:
// An object pointer can be explicitly converted to an object pointer of a different type. When a prvalue
// v of type pointer to T1 is converted to the type pointer to cv T2, the result is static_cast<cv
// v of type "pointer to T1" is converted to the type "pointer to cv T2", the result is static_cast<cv
// T2*>(static_cast<cv void*>(v)) if both T1 and T2 are standard-layout types (3.9) and the alignment
// requirements of T2 are no stricter than those of T1, or if either type is void. Converting a prvalue of type
// pointer to T1 to the type pointer to T2 (where T1 and T2 are object types and where the alignment
// "pointer to T1" to the type "pointer to T2" (where T1 and T2 are object types and where the alignment
// requirements of T2 are no stricter than those of T1) and back to its original type yields the original pointer
// value.
//

View File

@ -1,3 +1,11 @@
//
// Copyright (c) Antony Polukhin, 2012-2014.
//
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#define TEST_LIB_SOURCE
#include "test_lib.hpp"

View File

@ -1,3 +1,11 @@
//
// Copyright (c) Antony Polukhin, 2012-2014.
//
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#define TEST_LIB_SOURCE
#include "test_lib_anonymous.hpp"