Click here to Skip to main content
15,897,518 members

Bugs and Suggestions

   

General discussions, site bug reports and suggestions about the site.

For general questions check out the CodeProject FAQs. To report spam and abuse Head to the Spam and abuse watch. If you wish to report a bug privately, especially those related to security, please email webmaster@codeproject.com

 
SuggestionC++ Code formatting for templates auto-adds weird default value Pin
Stefan_Lang14-May-14 0:21
Stefan_Lang14-May-14 0:21 
GeneralRe: C++ Code formatting for templates auto-adds weird default value Pin
Thomas Daniels14-May-14 4:00
mentorThomas Daniels14-May-14 4:00 
GeneralRe: C++ Code formatting for templates auto-adds weird default value Pin
Stefan_Lang14-May-14 4:52
Stefan_Lang14-May-14 4:52 
GeneralRe: C++ Code formatting for templates auto-adds weird default value Pin
Chris Maunder14-May-14 6:01
cofounderChris Maunder14-May-14 6:01 
GeneralRe: C++ Code formatting for templates auto-adds weird default value Pin
Brisingr Aerowing14-May-14 6:17
professionalBrisingr Aerowing14-May-14 6:17 
GeneralRe: C++ Code formatting for templates auto-adds weird default value Pin
Stefan_Lang14-May-14 20:14
Stefan_Lang14-May-14 20:14 
GeneralRe: C++ Code formatting for templates auto-adds weird default value Pin
Chris Maunder15-May-14 1:35
cofounderChris Maunder15-May-14 1:35 
GeneralRe: C++ Code formatting for templates auto-adds weird default value Pin
Stefan_Lang15-May-14 3:16
Stefan_Lang15-May-14 3:16 
trying to reproduce...

Test: copy paste from text editor, click elsewhere (auto-closes 'Paste-as' dialog), then select and enclose in <pre>
C++
#include <string>
template <class T>
class myT {
T var;
};

Test 2: copy from within unsent post, including pre tags
C++
#include <string>
template <class T>
class myT {
T var;
};

Test 3: copy from within unsent post, excluding pre tags, use paste as code
C#
#include <string>
template <class T>
class myT {
T var;
};


Edit: ok, all seems to work, except pasting as codeblock uses C# formatting by default. Also the C# formatting automatically replaced the < and > tokens with the corresponding HTML tags automatically.

Another test: typing (not copying) same code, then enclose in pre
C++
#include <string>
template <class T>
class myT {
var T;
};


At this point I'm running out of ideas - maybe it's only in some forums ? I've noticed it in Q&A, will go test there...


Edit 2:
Tried 'improving' a solution of mine in Q&A, but couldn't reproduce the issue. I'll bookmark this thread and come back when i find an example that can be reproduced.

Edit 3:
Another test, trying to reproduce the problem i just faced in Q&A:
C++
template <class T>
class myT {
   T var;
public:
   void hello();
};
void foo() {
   myT<int> x;
   x.hello();
}

The function myT<int>::hello().
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

Point in case: http://www.infoq.com/news/2014/02/apple_gotofail_lessons[^]


modified 16-May-14 7:13am.

GeneralRe: C++ Code formatting for templates auto-adds weird default value Pin
Brisingr Aerowing15-May-14 9:30
professionalBrisingr Aerowing15-May-14 9:30 
GeneralRe: C++ Code formatting for templates auto-adds weird default value Pin
Chris Maunder15-May-14 9:34
cofounderChris Maunder15-May-14 9:34 
GeneralRe: C++ Code formatting for templates auto-adds weird default value Pin
Stefan_Lang16-May-14 1:16
Stefan_Lang16-May-14 1:16 
GeneralRe: C++ Code formatting for templates auto-adds weird default value Pin
Stefan_Lang16-May-14 1:18
Stefan_Lang16-May-14 1:18 
GeneralRe: C++ Code formatting for templates auto-adds weird default value Pin
Stefan_Lang10-Jun-14 1:45
Stefan_Lang10-Jun-14 1:45 
GeneralRe: C++ Code formatting for templates auto-adds weird default value Pin
Stefan_Lang6-Aug-14 0:25
Stefan_Lang6-Aug-14 0:25 
BugCTRL+Left and CTRL+Right don't work everywhere Pin
OriginalGriff14-May-14 0:13
mveOriginalGriff14-May-14 0:13 
GeneralRe: CTRL+Left and CTRL+Right don't work everywhere Pin
Rage14-May-14 1:11
professionalRage14-May-14 1:11 
GeneralRe: CTRL+Left and CTRL+Right don't work everywhere Pin
OriginalGriff14-May-14 3:17
mveOriginalGriff14-May-14 3:17 
GeneralRe: CTRL+Left and CTRL+Right don't work everywhere Pin
Chris Maunder15-May-14 2:00
cofounderChris Maunder15-May-14 2:00 
GeneralRe: CTRL+Left and CTRL+Right don't work everywhere Pin
OriginalGriff15-May-14 2:18
mveOriginalGriff15-May-14 2:18 
BugCannot Report a Message Pin
Karen Mitchelle13-May-14 21:55
professionalKaren Mitchelle13-May-14 21:55 
GeneralRe: Cannot Report a Message Pin
Chris Maunder14-May-14 16:24
cofounderChris Maunder14-May-14 16:24 
GeneralRe: Cannot Report a Message Pin
Karen Mitchelle14-May-14 20:25
professionalKaren Mitchelle14-May-14 20:25 
SuggestionArticle Contest Pin
Clark Kent12313-May-14 7:34
professionalClark Kent12313-May-14 7:34 
AnswerRe: Article Contest Pin
Kevin Priddle13-May-14 8:17
professionalKevin Priddle13-May-14 8:17 
GeneralRe: Article Contest Pin
Clark Kent12313-May-14 8:47
professionalClark Kent12313-May-14 8:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Flags: Unable to replicateAdded to TODOFixedAnswered

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.