TeensyThreads: using ThreadWrap shows error in Visual Studio


Active member
Just as stated in the title, using ThreadWrap just as described in readme.md to make Serial thread-safe produces an Intellisense error in VS (using Visual Micro, fyi): Error code #E0248: "pointer to reference is not allowed".
ThreadWrap is also underlined in the code editor because "Function definition for ThreadWrap not found."

The project compiles without problems, so that's a somewhat non-harmful situation, but having those errors in the editor and console is kinda irking to me.
Is there any way of getting rid of this without disabling intellisense altogether?
Intellisense on VSCode is doing that more frequently. Make sure that the libraries are in the search path. If it compiles, I tend to ignore that.