• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[/
2  (C) Copyright Edward Diener 2011,2013,2020
3  Distributed under the Boost Software License, Version 1.0.
4  (See accompanying file LICENSE_1_0.txt or copy at
5  http://www.boost.org/LICENSE_1_0.txt).
6]
7
8[section:tti_history History]
9
10[heading Boost 1.73]
11* The enclosing type to be introspected can now also be a union
12* You can introspect for the specific nested types of class/struct, enumeration, or union
13* You can introspect for the nested type of function templates using function template instantiation
14
15[heading Post Boost 1.55 development]
16* Passing a valid non-class as the enclosing type of the query macro metafunctions
17  always returns false, rather than producing a compiler error.
18* Passing a valid non-class as the enclosing type of the BOOST_TTI_MEM_TYPE
19  macro metafunction always returns the marker type, rather than producing
20  a compiler error.
21
22[heading Boost 1.54]
23* TTI is in Boost and the macros have been simplified
24* Breaking changes
25  * The nullary type metafunctions are no longer part of the library.
26  * Single common macro metafunctions are now used for introspecting
27    member data, member functions, static member data, static member functions,
28    data, functions, types, and templates.
29  * Composite forms of macro metafunctions are now folded into the main macros.
30  * BOOST_TTI_HAS_TYPE metafunction takes an optional second template parameter
31    which may be an MPL lambda expression.
32  * The BOOST_TTI_MEMBER_TYPE metafunction takes an optional marker type.
33
34[heading Version 1.5]
35
36* The TTI has been accepted into Boost. This is the first iteration of changes as the
37  library is being prepared for Boost based on the library review and end-user comments
38  and suggestions. For each iteration of changes made based on end-user comments and
39  suggestions, I will produce a new version number so that end-users who want to follow
40  the progress of the library for Boost can know what is being changed. I will be targeting
41  Boost 1.49 for completing all changes and passing all tests in order to have TTI ready to
42  be copied from Boost trunk to Boost release for inclusion into Boost.
43* Breaking changes
44  * Macro metafunctions are no longer generated in any namespace, but directly
45    in the scope of the end-user.
46  * The metafunction class generating macros, for each metafunction macro, have been removed.
47    The end-user can use boost::mpl::quote instead if he wishes.
48  * The metafunction name generating macros have been simplified so that no namespace name is generated,
49    and for each macro of the macro metafunctions there is a single metafunction name generating macro.
50  * The BOOST_TTI_TRAITS_GEN macro has been removed.
51  * Individual header file names have changed to more closely reflect the metafunction macro names.
52  * The names of the composite member function and composite static member function macros
53    have changed from BOOST_TTI_HAS_COMP_MEMBER_FUNCTION to BOOST_TTI_HAS_MEMBER_FUNCTION_WITH_SIG
54    and from BOOST_TTI_HAS_COMP_STATIC_MEMBER_FUNCTION to BOOST_TTI_HAS_STATIC_MEMBER_FUNCTION_WITH_SIG.
55* All template parameter names are now unique to TTI to avoid name clashes.
56* Nullary type metafunctions can be passed non-class types as is.
57
58[heading Version 1.4]
59
60* Breaking changes
61  * `BOOST_TTI_HAS_MEMBER` (`BOOST_TTI_TRAIT_HAS_MEMBER`) has been changed to `BOOST_TTI_HAS_COMP_MEMBER_FUNCTION` (`BOOST_TTI_TRAIT_HAS_COMP_MEMBER_FUNCTION`)
62    and
63    `BOOST_TTI_MTFC_HAS_MEMBER` (`BOOST_TTI_MTFC_TRAIT_HAS_MEMBER`) has been changed to `BOOST_TTI_MTFC_HAS_COMP_MEMBER_FUNCTION` (`BOOST_TTI_MTFC_TRAIT_HAS_COMP_MEMBER_FUNCTION`).
64    This family of functionality now supports only member functions with composite syntax.
65  * `BOOST_TTI_HAS_STATIC_MEMBER` (`BOOST_TTI_TRAIT_HAS_STATIC_MEMBER`) has been changed to `BOOST_TTI_HAS_COMP_STATIC_MEMBER_FUNCTION` (`BOOST_TTI_TRAIT_HAS_COMP_STATIC_MEMBER_FUNCTION`)
66    and
67    `BOOST_TTI_MTFC_HAS_STATIC_MEMBER` (`BOOST_TTI_MTFC_TRAIT_HAS_STATIC_MEMBER`) has been changed to `BOOST_TTI_MTFC_HAS_COMP_STATIC_MEMBER_FUNCTION` (`BOOST_TTI_MTFC_TRAIT_HAS_COMP_STATIC_MEMBER_FUNCTION`).
68    This family of functionality now supports only static member functions with composite syntax.
69  * `boost::tti::mf_has_static_data` has been changed to `boost::tti::mf_has_static_member_data`.
70* Added `BOOST_TTI_HAS_STATIC_MEMBER_DATA` and family for introspecting static member data.
71* Inclusion of specific header files for faster compilation is now supported.
72* Inclusion of macro metafunction name generating macros.
73* Shorten the names of the test files and test header files.
74* Added documentation topic about introspecting function templates.
75
76[heading Version 1.3]
77
78* Breaking changes
79  * The names of the main header files are shortened to 'boost/tti/tti.hpp' and 'boost/tti/tti_vm.hpp'.
80  * The library follows the Boost conventions.
81    * Changed the filenames to lower case and underscores.
82    * The top-level tti namespace has become the boost::tti namespace.
83    * The macros now start with `BOOST_TTI_` rather than just `TTI_` as previously.
84  * The variadic macro support works only with the latest version of the variadic_macro_library,
85    which is version 1.3+.
86
87[heading Version 1.2]
88
89* Added the set of metafunction class macros for passing the macro metafunctions as metadata.
90  This complements passing the macro metafunctions as metadata using placeholder expressions.
91
92[heading Version 1.1]
93
94* Library now also compiles with gcc 3.4.2 and gcc 3.4.5.
95* Examples of use have been added to the documentation.
96* In the documentation the previously mentioned 'nested type metafunctions' are now called "nullary type metafunctions'.
97* `BOOST_TTI_HAS_TYPE` and `boost::tti::mf_has_type` now have optional typedef checking.
98* New macro metafunction functionality which allows composite typed to be treated as individual types has been implemented. These include:
99  * `BOOST_TTI_HAS_MEMBER_DATA`
100  * `BOOST_TTI_HAS_MEMBER_FUNCTION`
101  * `BOOST_TTI_HAS_STATIC_MEMBER_FUNCTION`
102* New nullary type metafunction `boost::tti::mf_has_static_member_function` uses the new underlying `BOOST_TTI_HAS_STATIC_MEMBER_FUNCTION` macro metafunction.
103  Its signature uses an optional MPL forward sequence for the parameter types and an optional Boost `function_types` tag type.
104* New nullary type metafunctions `boost::tti::valid_member_type` and `boost::tti::mf_valid_member_type` for checking if the 'type' returned from invoking the `BOOST_TTI_MEMBER_TYPE` or `boost::tti::mf_member_type` metafunctions is valid.
105* Breaking changes
106  * `BOOST_TTI_HAS_TYPE_CHECK_TYPEDEF` and `boost::tti::mf_has_type_check_typedef` have been removed, and the functionality in them folded into `BOOST_TTI_HAS_TYPE` and `boost::tti::mf_has_type`.
107  * BOOST_TTI_MEMBER_TYPE and boost::tti::mf_member_type no longer also return a 'valid' boolean constant. Use boost::tti::valid_member_type or  boost::tti::mf_valid_member_type metafunctions instead ( see above ).
108  * `boost::tti::mf_has_static_function` has been removed and its functionality moved to `boost::tti::mf_has_static_member_function` ( see above ).
109  * `boost::tti::mf_member_data` uses the new underlying `BOOST_TTI_HAS_MEMBER_DATA` macro metafunction.
110  * The signature for `boost::tti::mf_has_member_function` has changed to use an optional MPL forward sequence for the parameter types and an optional Boost `function_types` tag type.
111  * All nullary type metafunctions take their corresponding macro metafunction parameter as a class in the form of a Boost MPL lambda expression instead of as a template template parameter as previously.
112    Using a placeholder expression is the easiest way to pass the corresponding macro metafunction to its nullary type metafunction.
113
114[heading Version 1.0]
115
116Initial version of the library.
117
118[endsect]
119