Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Please check the list of 2019.1 changes
Re: Please check the list of 2019.1 changes [message #51204 is a reply to message #51198] Tue, 19 February 2019 17:38 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1219
Registered: August 2007
Senior Contributor
Hello Klugier,

Thank you for your feedback.

I found a very simple workaround for sigtimedwait() issue on MacOS:
It relies on already existing functionality, so I tested it on Linux, and it worked:

			#if defined(PLATFORM_MACOS)
			// We are using sigtimedwait on POSIX-compliant systems.
			// Unfortunately MacOS didn't implement it. This is a simple workaround for MacOS.
			// It relies on ioctl, which is implemented on MacOS.
			Size sz = GetConsolePageSize();
			resized = !IsNull(sz) && sz != psize;
			if(resized)
				LLOG("Window size changed.");
			#else



And as to the the CLANG warning, which I don't get with GCC (probably because it's more relaxed):

I found that in C++11 standard (section 12.3.2):

If a conversion function is a member function, the type of the conversion function (8.3.5) is
"function taking no parameter returning conversion-type-id". A conversion function is never used to
convert a (possibly cv-qualified) object to the (possibly cv-qualified) same object type (or a reference to it), 
to a (possibly cv-qualified) base class of that type (or a reference to it), or to (possibly cv-qualified) void


So I removed the implicit converter.

I've commited the patches. And updated the ezamples accordingly.

I'd be grateful if you can test it when you have some time.

Best regards,
Oblivion


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: umk on Linux
Next Topic: DarkTheme support
Goto Forum:
  


Current Time: Sun Aug 03 18:48:31 CEST 2025

Total time taken to generate the page: 0.06741 seconds