|
trying to reproduce...
Test: copy paste from text editor, click elsewhere (auto-closes 'Paste-as' dialog), then select and enclose in <pre>
#include <string>
template <class T>
class myT {
T var;
};
Test 2: copy from within unsent post, including pre tags
#include <string>
template <class T>
class myT {
T var;
};
Test 3: copy from within unsent post, excluding pre tags, use paste as code
#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
#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:
template <class T>
class myT {
T var;
public:
void hello();
};
void foo() {
myT<int> x;
x.hello();
}
The function myT<int>::hello() .
modified 16-May-14 7:13am.
|
|
|
|
|
It seems to happen randomly. I never know when it will hit.
public static void AddRange<T>(this ICollection<T> list, IEnumerable<T> elements)
{
foreach (T o in elements)
list.Add(o);
}
template <class identifier> function_declaration;
template <typename identifier> function_declaration;
template <typename Type>
Type max(Type a, Type b) {
return a > b ? a : b;
}
What do you get when you cross a joke with a rhetorical question?
|
|
|
|
|
Let me know when you can replicate it.
cheers
Chris Maunder
|
|
|
|
|
Can't exactly replicate, but in my last attempt got different errors, trying to post this:
template <class T>
class myT {
T var;
public:
void hello();
};
void foo() {
myT<int> x;
x.hello();
}
The function myT<int>::hello() .
|
|
|
|
|
In my recent reply (I deliberately did not edit it), the last case of <int> has been eaten by HTML - although it's actually still in the original text!
|
|
|
|
|
Here's another formatting issue for C++ code: a triple slash followed by anything containing either a 'less' sign or the associated html tag, leads to the remainder of the code being greyed out! Not even sure why any parts of C++ code should be greyed out!? Interestingly, the part before the less sign is correctly formatted in green, as a comment, although the leading triple slash is still grey
Here's an example:
void foo() {
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)
|
|
|
|
|
And another occurence, this time concerning dynamic_cast template arguments. In the solution I posted here[^], I tried to post code containing
dynamic_cast<some_type*>(some_pointer);
but what I got - even after an attempt to correct it - was
dynamic_cast(some_pointer);</some_type>
I needed to replace the < and > tokens by the corresponding HTML tags to fix it!
Test to replicate:
dynamic_cast<some_type>(some_pointer)
P.S.: Test failed - couldn't replicate
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)
|
|
|
|
|
They work here, and in the Lounge, and in "Normal" articles, but not in the messages at the bottom of here: http://www.codeproject.com/script/Articles/ArticleVersion.aspx?waid=125945&aid=771879[^]
Probably, that's because it's in the moderation queue, but since the bottom of the page has:
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages. It would be nice if they worked!
Very low priority, obviously, but if you are in there in the near future...
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Because the article has not yet been moderated ?
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Entropy isn't what it used to.
|
|
|
|
|
I'm guessing so - but having the instructions and them not working is a little...inconsistent.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Is an issue due to there being two forums on that page. I'll work to make it more sensible
cheers
Chris Maunder
|
|
|
|
|
Ah! I see what you mean, yes...that would complicate things!
So just remove the message - there's not normally a lot of posts, so if we don't get the "you can do this" it's probably not going to bother anyone that they can't do this. If you see what I mean.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
This message[^] was reported in the Spam and Abuse Watch Forum. But, it cannot be reported. No flags, no downvote and no upvote buttons.
Can you please take a look? Thanks.
Don't mind those people who say you're not HOT. At least you know you're COOL.
I'm not afraid of falling, I'm afraid of the sudden stop at the end of the fall! - Richard Andrew x64
|
|
|
|
|
Thanks Karen. Voting was disabled for some reason.
The message has been nuked.
cheers
Chris Maunder
|
|
|
|
|
Thanks Chris.
Voting is now enabled on the particular article's messages/comments.
Don't mind those people who say you're not HOT. At least you know you're COOL.
I'm not afraid of falling, I'm afraid of the sudden stop at the end of the fall! - Richard Andrew x64
|
|
|
|
|
Quote: Below are a list of the top 10 articles submitted last month. Please choose the ones you consider your favourite.
It's only allowing me to select only one.
If selecting only one choice is how the voting supposed to work then could the text be updated to say choose only one? I am a bit confused if there is a typo in the text or if the functionality has a new "feature".
Thanks!
|
|
|
|
|
Ahh not a bug, we're "experimenting" this month to see what happens when you're only allowed to select a single article that's your favourite (like in an election) versus picking multiple ones.
Curious... do you have a preference either way of how future competitions should be run? Single vs. Multiple choices?
|
|
|
|
|
My preference is multiple choices. It's so hard to choose only one. Looking at the C# articles there is a minimum of 2 that I want to select. I feel bad choosing one over the other so I didn't vote...yet.
What I have noticed when I vote for these articles is I usually pick 2 or more. I rarely pick just one.
Just my thoughts I don't mind what the final verdict is. I will cope... I hope
|
|
|
|
|
So I for one agree with the Man of Steel.
I often find it hard to pick just one article, but there are also cases where I wish to "give an extra nod" to what I consider a runner-up article, unlikely to win the competition (e.g. VB.NET, "Black-Oil"). I realize I can also simply post a message in the article's forum, but I would think any competition vote warms just a tad extra.
Just my 2 cents.
Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
|
|
|
|
|
SoMad wrote: So
You're overdoing it - come on, your name already starts with So!
|
|
|
|
|
If multiple choice is active I don't always use it, but if there are more than one interesting articles, I like to have the possibility.
On the other hand... if only one vote possible... I have no problem with it.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Trying to delete these workspaces under my name ... was able to do it last month but today I get this error:
https://errbit.aws-codeproject.com/notifier_api/v2/notices?data=% ... %3E%3C%2Fsession%3E%3C%2Frequest
|
|
|
|
|
Which browser do you use when this error happens? Can you reproduce the problem?
|
|
|
|
|
sir, there should be an option to see surveys which are over and another option for ongoing surveys. Till now both are shown together.
|
|
|
|
|
Sir, a i faced a new type of error today while submitting an answer please see the below link
http://adf.ly/mlt5v[^]
|
|
|
|