Skip to main content
M.Holch
Associate II
January 26, 2021
Question

How do i get C++ formatter to work correct, problems with typeid()

  • January 26, 2021
  • 1 reply
  • 672 views

This code (very short non compiling i know)

void main()
{
	int f;
	for (auto i : array[typeid(f)])
	{
	}
}

If i try and format it, when typeid is presented to a know type it formats like this:

void main()
{
	int f;
	for (auto i : array[typeid(f)])
			{
			}
		}

makes NO sence.. online formatters does not..

/M

This topic has been closed for replies.

1 reply

M.Holch
M.HolchAuthor
Associate II
January 26, 2021

if anyone can confirm there is a issue, i'll bring it to eclipse :)