@@ -59,7 +59,7 @@ struct exists
5959 };
6060
6161 template <>
62- struct iterator <Loki::NullType >
62+ struct iterator <Loki::EmptyType >
6363 {
6464 enum
6565 {
@@ -83,7 +83,7 @@ struct merge
8383 };
8484
8585 template <>
86- struct iterator <Loki::NullType >
86+ struct iterator <Loki::EmptyType >
8787 {
8888 typedef List2 result;
8989 };
@@ -116,9 +116,9 @@ struct has_conversion
116116 };
117117
118118 template <>
119- struct search_base <Loki::NullType >
119+ struct search_base <Loki::EmptyType >
120120 {
121- typedef Loki::NullType result;
121+ typedef Loki::EmptyType result;
122122 };
123123
124124 template <typename T>
@@ -149,7 +149,7 @@ struct has_conversion
149149 };
150150
151151 template <>
152- struct search_conversion <Loki::NullType >
152+ struct search_conversion <Loki::EmptyType >
153153 {
154154 enum
155155 {
@@ -197,7 +197,7 @@ struct has_any_conversion
197197 };
198198
199199 template <>
200- struct iterator <Loki::NullType >
200+ struct iterator <Loki::EmptyType >
201201 {
202202 enum
203203 {
@@ -233,14 +233,14 @@ struct CMatcher
233233 template <bool >
234234 struct _selector
235235 {
236- typedef Loki::Typelist<typename PrevHead::Head, Loki::Typelist<Target, Loki::NullType >> result;
236+ typedef Loki::Typelist<typename PrevHead::Head, Loki::Typelist<Target, Loki::EmptyType >> result;
237237 };
238238
239239 template <>
240240 struct _selector <false >
241241 {
242242 typedef Loki::Typelist<typename PrevHead::Head,
243- Loki::Typelist<Head, Loki::Typelist<Target, Loki::NullType >>>
243+ Loki::Typelist<Head, Loki::Typelist<Target, Loki::EmptyType >>>
244244 result;
245245 };
246246
@@ -258,7 +258,7 @@ struct CMatcher
258258 };
259259
260260 template <>
261- struct CMatchHelper3 <Loki::NullType >
261+ struct CMatchHelper3 <Loki::EmptyType >
262262 {
263263 typedef typename CMatchHelper<typename T::Tail>::result result;
264264 };
@@ -290,9 +290,9 @@ struct CMatcher
290290 };
291291
292292 template <>
293- struct CMatchHelper <Loki::NullType >
293+ struct CMatchHelper <Loki::EmptyType >
294294 {
295- typedef Loki::NullType result;
295+ typedef Loki::EmptyType result;
296296 };
297297
298298 typedef typename CMatchHelper<cast_type_list>::result result;
@@ -326,7 +326,7 @@ struct conversion_sequence
326326 typedef search_result result;
327327 };
328328
329- typedef typename selector<is_type<Loki::NullType , search_result>::value>::result result;
329+ typedef typename selector<is_type<Loki::EmptyType , search_result>::value>::result result;
330330 };
331331
332332 template <bool >
@@ -346,7 +346,7 @@ struct conversion_sequence
346346 typedef typename list_iterator<Tail>::result result;
347347 };
348348
349- typedef typename _selector<!is_type<Loki::NullType , helper_result>::value>::result result;
349+ typedef typename _selector<!is_type<Loki::EmptyType , helper_result>::value>::result result;
350350 };
351351
352352 template <>
@@ -369,7 +369,7 @@ struct conversion_sequence
369369 typedef typename list_iterator<Tail>::result result;
370370 };
371371
372- typedef typename _selector2<!is_type<Loki::NullType , helper_result>::value>::result result;
372+ typedef typename _selector2<!is_type<Loki::EmptyType , helper_result>::value>::result result;
373373 };
374374
375375 template <>
@@ -386,9 +386,9 @@ struct conversion_sequence
386386 };
387387
388388 template <>
389- struct list_iterator <Loki::NullType >
389+ struct list_iterator <Loki::EmptyType >
390390 {
391- typedef Loki::NullType result;
391+ typedef Loki::EmptyType result;
392392 };
393393
394394 template <int length>
@@ -410,7 +410,7 @@ struct conversion_sequence
410410 typedef typename list_iterator<cast_type_list>::result result;
411411 };
412412
413- typedef typename _selector<!is_type<Loki::NullType , nearest>::value>::result result;
413+ typedef typename _selector<!is_type<Loki::EmptyType , nearest>::value>::result result;
414414 };
415415
416416 template <>
@@ -422,7 +422,7 @@ struct conversion_sequence
422422 template <>
423423 struct selector <0 >
424424 {
425- typedef Loki::NullType result;
425+ typedef Loki::EmptyType result;
426426 };
427427
428428 typedef typename selector<max_length>::result result;
@@ -451,7 +451,7 @@ struct CSmartCaster
451451 };
452452
453453 template <>
454- struct CHelper <Loki::NullType >
454+ struct CHelper <Loki::EmptyType >
455455 {
456456 IC static Target* smart_cast (Head* p) { return (SmartDynamicCast::smart_cast<Target>(p)); }
457457 };
@@ -474,7 +474,7 @@ struct CSmartMatcher
474474 }
475475
476476 template <>
477- IC static T1* smart_cast<Loki::NullType >(T2* p)
477+ IC static T1* smart_cast<Loki::EmptyType >(T2* p)
478478 {
479479#ifdef SHOW_SMART_CAST_UNOPTIMIZED_CASES
480480#pragma todo("Dima to all : this smart_cast is not optimized!")
0 commit comments