@@ -156,7 +156,7 @@ TEST(Logger_IT, FlushTime)
156156 // Clear the m_msgData list on Logger thread
157157 auto retVal1 = MakeDelegate (
158158 &Logger::GetInstance ().m_logData .m_msgData , // Object instance
159- &std::list<std::string>::clear, // Object function
159+ ( void (std::list<std::string>::*)() noexcept ) &std::list<std::string>::clear, // Object function
160160 Logger::GetInstance (), // Thread to invoke object function
161161 milliseconds (50 )).AsyncInvoke ();
162162
@@ -222,7 +222,7 @@ TEST(Logger_IT, FlushTimeSimplified)
222222 // Clear the m_msgData list on Logger thread
223223 auto retVal1 = AsyncInvoke (
224224 &Logger::GetInstance ().m_logData .m_msgData , // Object instance
225- &std::list<std::string>::clear, // Object function
225+ ( void (std::list<std::string>::*)() noexcept ) &std::list<std::string>::clear, // Object function
226226 Logger::GetInstance (), // Thread to invoke object function
227227 milliseconds (50 )); // Wait up to 50mS for async invoke
228228
@@ -290,7 +290,7 @@ TEST(Logger_IT, FlushTimeSimplifiedWithLambda)
290290 // Clear the m_msgData list on Logger thread
291291 auto retVal1 = AsyncInvoke (
292292 &Logger::GetInstance ().m_logData .m_msgData , // Object instance
293- &std::list<std::string>::clear, // Object function
293+ ( void (std::list<std::string>::*)() noexcept ) &std::list<std::string>::clear, // Object function
294294 Logger::GetInstance (), // Thread to invoke object function
295295 milliseconds (50 )); // Wait up to 50mS for async invoke
296296
@@ -454,4 +454,4 @@ TEST(Logger_IT, ConcurrentWrites)
454454}
455455
456456// Dummy function to force linker to keep the code in this file
457- void Logger_IT_ForceLink () { }
457+ void Logger_IT_ForceLink () { }
0 commit comments