« first day (614 days earlier)      last day (4348 days later) » 

11:00 PM
I suppose it is likely only surprising that the more explicit part of the message wasn't noticed :) — sehe 10 secs ago
^ CNR
@sehe S-A-SysRq*, obviously - now it will work :)
 
-1
A: Is it dangerous to have a cast operator on a unique_ptr?

Cheers and hth. - AlfSee this general answer by Herb Sutter, chair of the international C++ standardization committee and lead architect (or something) of the Visual C++ team at Microsoft

interesting downvote
i can't think of a more authoritative answer, nor a more up-to-date one
 
@CheersandhthAlf I think the downvote was for just linking to an outside source
 
yes, maybe
 
Perhaps someone expected that you summarize the blog post in your answer
 
but quoting Herb's article in full feels wrong
 
11:06 PM
Although I wouldn't downvote an answer that at least leads to the right direction
 
and not quoting it in full, feels wrong too
 
I didn't say quote, I said summarize.
And cite the blog post, of course.
 
i think everything's said there, is important
and expressed in minimal fashion
 
You don't have to hit every single point.
For example, you can provide a code sample and demonstrate that it doesn't do what you expect.
 
I did that in comment on the question already
No need to repeat myself (except for preventing silly downvotes, at a cost)
 
11:10 PM
@ChrisP: Woah, that's quite a bit of text you posted (as in, nobody here is going to read it)
Ask on Stack Overflow.
@ChrisP: Is that a homework question?
 
@Insilico Unfortunatelly

Sorry, we are no longer accepting questions from this account. See http://goo.gl/C1Kwu to learn more.


Error :(
 
The problem sounds rather contrived to me.
Oh okay.
 
@ChrisP That seems like a racist program to write. :-)
 
@JimNorton LOL
Can i suggest to open my account again in meta?
 
@ChrisP: Sure. Make your case.
Although to be quite honest the questions you've asked aren't written very well.
 
11:16 PM
Yes, sorry for my english
0
Q: How can i unblock my account?

Chris PWhen i hit the Ask button in stackoverflow, the page says :"Sorry, we are no longer accepting questions from this account. See http://goo.gl/C1Kwu to learn more." I have changed some bad posts/questions How can i activate my account again? Anything else i can do?

 
Already been through this.
 
@ChrisP The English is not the issue. I can understand you fine.
 
So what's the problem?
 
oh my god giant wall of code
 
11:18 PM
You can't just paste in a bunch of code and expect people to know what your problem is
Especially if the indentation is horrible.
Nobody on Stack Overflow is going to take the time to sort through the mess.
@ChrisP: Refer to this: sscce.org
Another example, stackoverflow.com/questions/8370069/… You need to provide way more context than that. The context is important or we run into the XY problem
 
This code is copy-paste from notepad++
In notepad++ i use the tab button
but when i paste the code i have this problems
 
0
A: Is it dangerous to have a cast operator on a unique_ptr?

sehe Is it dangerous to have a cast operator on a unique_ptr? No, it certainly should not be dangerous: in fact the standard requires an implicit conversion to 'safe bool' (see Safe Bool Idiom). (see the other answers for more canonical treatment , including the conversion to raw pointer)

 
@ChrisP the point is that you could reduce the code to just the minimum amount needed to show the problem, not simply "here it is"
 
Why the second question is low voted?
 
@ChrisP Tabs suck. This is the main reason why.
 
11:21 PM
@ChrisP On Stack Overflow, a "tab" is represented by four spaces.
 
In many cases you must paste a lot of lines of code in your questions
 
Only a bit lame. Still too good to pas on :)
 
@ChrisP I don't quite understand that sentence.
 
@ChrisP most questions can be illustrated with minimal but complete code which is relatively few lines
if you can't reproduce the question in a small number of lines of code odds are you need a debugger
 
Maybe you are right..
I will be back in a few minutes
 
11:27 PM
@ChrisP mostly just if you're lazy or you don't know what you're doing. It either puts the burden on the answerers (who will be more than happy to politely thank for the opportunity) or you need to start smaller. Baby Steps. Baby Steps. Read a lot and ask simple question when you are genuinely stuck.
 
Ok,
One simple question:
When i want to play with char of one string what is the best solution:
a./Save the string into a variable and use substring function?
b./Save the string into an array and use the index of the array

Or depends of which language i use?
 
@ChrisP Ummm... Somewhat language dependant. What is your target language?
I would assume C++ since you're in this chat room?
 
SML/NJ (fuctional programming)
also i must implement the same problem in Java
 
Holy cow... I've never seen this room so quiet.
 
11:49 PM
nobody here wants to discuss Java
 
@ChrisP wow, you have more questions with negative ratings than positive!
 
So bad :(
 

« first day (614 days earlier)      last day (4348 days later) »