Gui: Update MSVC legacy code comments from ViewProviderLink.

This commit is contained in:
tritao
2025-01-22 22:10:41 +00:00
parent 4260bd6fa4
commit 1f07fb3a87
2 changed files with 2 additions and 6 deletions

View File

@@ -313,12 +313,8 @@ public:
}
}
// VC2013 has trouble with template argument dependent lookup in
// MSVC has trouble with template argument dependent lookup in
// namespace. Have to put the below functions in global namespace.
//
// However, gcc seems to behave the opposite, hence the conditional
// compilation here.
//
#if defined(_MSC_VER)
friend void Gui::intrusive_ptr_add_ref(LinkInfo *px);
friend void Gui::intrusive_ptr_release(LinkInfo *px);

View File

@@ -41,7 +41,7 @@ class LinkInfo;
using LinkInfoPtr = boost::intrusive_ptr<LinkInfo>;
#if defined(_MSC_VER)
// forward declaration to please VC 2013
// forward declaration to please MSVC
void intrusive_ptr_add_ref(Gui::LinkInfo *px);
void intrusive_ptr_release(Gui::LinkInfo *px);
#endif