@@ -273,7 +273,7 @@ namespace cppwinrt
273273
274274 if (!empty (generics))
275275 {
276- write (" @::%<%>" , ns, remove_tick (name), bind_list (" , " , generics));
276+ write (" winrt:: @::%<%>" , ns, remove_tick (name), bind_list (" , " , generics));
277277 return ;
278278 }
279279
@@ -301,7 +301,7 @@ namespace cppwinrt
301301 else if (name == " Vector3" ) { name = " float3" ; }
302302 else if (name == " Vector4" ) { name = " float4" ; }
303303
304- write (" @::%" , ns, name);
304+ write (" winrt:: @::%" , ns, name);
305305 }
306306 else if (category == category::struct_type)
307307 {
@@ -311,7 +311,7 @@ namespace cppwinrt
311311 }
312312 else if ((name == " Point" || name == " Size" || name == " Rect" ) && ns == " Windows.Foundation" )
313313 {
314- write (" @::%" , ns, name);
314+ write (" winrt:: @::%" , ns, name);
315315 }
316316 else if (delegate_types)
317317 {
@@ -343,11 +343,11 @@ namespace cppwinrt
343343 else if (name == " Vector3" ) { name = " float3" ; }
344344 else if (name == " Vector4" ) { name = " float4" ; }
345345
346- write (" @::%" , ns, name);
346+ write (" winrt:: @::%" , ns, name);
347347 }
348348 else
349349 {
350- write (" @::%" , ns, name);
350+ write (" winrt:: @::%" , ns, name);
351351 }
352352 }
353353 }
@@ -400,14 +400,14 @@ namespace cppwinrt
400400
401401 if (consume_types)
402402 {
403- static constexpr std::string_view iterable (" Windows::Foundation::Collections::IIterable<" sv);
404- static constexpr std::string_view vector_view (" Windows::Foundation::Collections::IVectorView<" sv);
405- static constexpr std::string_view map_view (" Windows::Foundation::Collections::IMapView<" sv);
406- static constexpr std::string_view vector (" Windows::Foundation::Collections::IVector<" sv);
407- static constexpr std::string_view map (" Windows::Foundation::Collections::IMap<" sv);
403+ static constexpr std::string_view iterable (" winrt:: Windows::Foundation::Collections::IIterable<" sv);
404+ static constexpr std::string_view vector_view (" winrt:: Windows::Foundation::Collections::IVectorView<" sv);
405+ static constexpr std::string_view map_view (" winrt:: Windows::Foundation::Collections::IMapView<" sv);
406+ static constexpr std::string_view vector (" winrt:: Windows::Foundation::Collections::IVector<" sv);
407+ static constexpr std::string_view map (" winrt:: Windows::Foundation::Collections::IMap<" sv);
408408
409409 consume_types = false ;
410- auto full_name = write_temp (" @::%<%>" , ns, name, bind_list (" , " , type.GenericArgs ()));
410+ auto full_name = write_temp (" winrt:: @::%<%>" , ns, name, bind_list (" , " , type.GenericArgs ()));
411411 consume_types = true ;
412412
413413 if (starts_with (full_name, iterable))
@@ -459,7 +459,7 @@ namespace cppwinrt
459459 }
460460 else
461461 {
462- write (" @::%<%>" , ns, name, bind_list (" , " , type.GenericArgs ()));
462+ write (" winrt:: @::%<%>" , ns, name, bind_list (" , " , type.GenericArgs ()));
463463 }
464464 }
465465 }
0 commit comments