Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Wrong code colors with specific template and macro code #267

Open
@aeschli

Description

@aeschli

From @maxco2 on April 4, 2018 3:20

Issue Type: Bug
wrongcolors

#pragma once

#include <type_traits>

#define IsPointDef(...) \
	template<> \
	struct IsPoint<__VA_ARGS__> \
		{\
		static const bool isPoint = true;\
				}

#define ArrayBasedPointDef(T) \
	IsPointDef(T); \
	template<> \
	struct IsArrayBasedPoint<T>:public std::true_type \
		{};



#define XYBasedPointDef(T) \
	IsPointDef(T); \
	template<> \
	struct IsXYBasedPoint<T>:public std::true_type \
{};

#define TypeTAndUIsPoint \
	template<typename T, typename U, class = typename std::enable_if<IsPoint<T>::isPoint>::type, class = typename std::enable_if<IsPoint<U>::isPoint>::type>

namespace Navigation
{
	namespace Utils
	{
		template<typename T>
		struct IsPoint
		{
			static const bool isPoint = false;
		};

		template<typename T>
		struct IsArrayBasedPoint
		{
			static const bool value = false;
		};

		template<typename T>
		struct IsXYBasedPoint
		{
			static const bool value = false;
		};

	}
}

VS Code version: Code 1.21.1 (79b44aa704ce542d8ca4a3cc44cfca566e7720f1, 2018-03-14T14:46:47.128Z)
OS version: Windows_NT x64 10.0.17133

Extensions: none
Reproduces without extensions

Copied from original issue: microsoft/vscode#47170

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions