@@ -23,8 +23,8 @@ namespace my_namespace {
2323class my_class ;
2424struct my_struct ;
2525
26- typedef std::vector<my_class> my_classes ;
27- typedef std::string my_string ;
26+ using my_classes = std::vector<my_class>;
27+ using my_string = std::string;
2828
2929} // namespace my_namespace
3030
@@ -96,21 +96,21 @@ class my_type_index: public boost::typeindex::type_index_facade<my_type_index, d
9696 const detail::my_typeinfo* data_;
9797
9898public:
99- typedef detail::my_typeinfo type_info_t ;
99+ using type_info_t = detail::my_typeinfo;
100100
101- inline my_type_index () BOOST_NOEXCEPT
101+ inline my_type_index () noexcept
102102 : data_(&detail::my_typeinfo_construct<void >())
103103 {}
104104
105- inline my_type_index (const type_info_t & data) BOOST_NOEXCEPT
105+ inline my_type_index (const type_info_t & data) noexcept
106106 : data_(&data)
107107 {}
108108
109- inline const type_info_t & type_info () const BOOST_NOEXCEPT {
109+ inline const type_info_t & type_info () const noexcept {
110110 return *data_;
111111 }
112112
113- inline const char * raw_name () const BOOST_NOEXCEPT {
113+ inline const char * raw_name () const noexcept {
114114 return data_->type_ ;
115115 }
116116
@@ -119,17 +119,17 @@ class my_type_index: public boost::typeindex::type_index_facade<my_type_index, d
119119 }
120120
121121 template <class T >
122- inline static my_type_index type_id () BOOST_NOEXCEPT {
122+ inline static my_type_index type_id () noexcept {
123123 return detail::my_typeinfo_construct<T>();
124124 }
125125
126126 template <class T >
127- inline static my_type_index type_id_with_cvr () BOOST_NOEXCEPT {
127+ inline static my_type_index type_id_with_cvr () noexcept {
128128 return detail::my_typeinfo_construct<T>();
129129 }
130130
131131 template <class T >
132- inline static my_type_index type_id_runtime (const T& variable) BOOST_NOEXCEPT ;
132+ inline static my_type_index type_id_runtime (const T& variable) noexcept ;
133133};
134134
135135} // namespace my_namespace
@@ -168,7 +168,7 @@ namespace my_namespace { namespace detail {
168168*/
169169namespace my_namespace {
170170 template <class T >
171- my_type_index my_type_index::type_id_runtime (const T& variable) BOOST_NOEXCEPT {
171+ my_type_index my_type_index::type_id_runtime (const T& variable) noexcept {
172172 // Classes that were marked with `MY_TYPEINDEX_REGISTER_CLASS` will have a
173173 // `type_id_runtime()` method.
174174 return variable.type_id_runtime ();
@@ -204,7 +204,7 @@ struct my_struct: public my_class {
204204*/
205205#define BOOST_TYPE_INDEX_REGISTER_CLASS MY_TYPEINDEX_REGISTER_CLASS
206206namespace boost { namespace typeindex {
207- typedef my_namespace::my_type_index type_index ;
207+ using type_index = my_namespace::my_type_index;
208208}}
209209// ] [/type_index_my_type_index_worldwide_typedefs]
210210
0 commit comments