Community
Participate
Working Groups
Build Identifier: 8.0.0.201106081058 Hi. I have declaration of function in header: void ShowText(int x, int y, const std::string &text, Uint32 color32=0); and when i use this function like: ShowText(10, 10, strCameraPos); parsed say that there isn't any function ShowText with 3 parameters. Invalid arguments ' Candidates are: void ShowText(int, int, const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &, unsigned int) ' Reproducible: Always Steps to Reproduce: 1. Write in header void ShowText(int x, int y, const std::string &text, Uint32 color32=0); 2. Include header in cpp and try to use function like: char strCameraPos[128]; sprintf(strCameraPos, "Camera: %dx%d", cameraX, cameraY); ShowText(10, 10, strCameraPos); 3. CDT show bug in this live with liveparser
I was not able to reproduce the problem. Do you also see it for the following code? #include "showtext.h" void test() { std::string x= ""; ShowText(10, 10, x); }
It looks like single error in CDT Indexer. I turned it off and applied. And again turned it on, and all is working good. Maybe some freeze in indexing or something. Thanks for reply.
Please reopen the bugzilla, in case you can reproduce the issue.