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 » U++ Library support » U++ Core » Weird result with Format();
Re: Weird result with Format(); [message #60313 is a reply to message #60307] Fri, 17 November 2023 18:41 Go to previous messageGo to previous message
Tom1
Messages: 1305
Registered: March 2007
Ultimate Contributor
Hi,

I can confirm this too. I guess this is an unfortunate side effect of float recently gaining Value support.

In Core/Format.cpp it needs one or both of these additions:
...
void RegisterNumberFormatter(const char *id, Formatter f)
{
	RegisterFormatter(DOUBLE_V, id, f);
	RegisterFormatter(FLOAT_V, id, f);      // << Add float support
	RegisterFormatter(INT64_V, id, f);
	RegisterFormatter(INT_V, id, f);
	RegisterFormatter(BOOL_V, id, f);
	RegisterNullFormatter(id, f);
}
...


and/or

...
static void sRegisterFormatters()
{
	ONCELOCK {
		IntDoubleRegister(BOOL_V);
		IntDoubleRegister(INT_V);
		IntDoubleRegister(INT64_V);
		IntDoubleRegister(DOUBLE_V);
		IntDoubleRegister(FLOAT_V);      // << Add float support
...


I'm just guessing... Mirek knows for sure how to proceed.

Best regards,

Tom
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: About recent memset optimization
Next Topic: Default comparisons for type derived from Moveable
Goto Forum:
  


Current Time: Sat Aug 02 06:41:22 CEST 2025

Total time taken to generate the page: 0.08680 seconds