« first day (508 days earlier)      last day (4423 days later) » 

12:00 AM
@CatPlusPlus Apparently it only happens with the USB images. I have yet to see other clever OS-es doing USB installation to begin with?
 
mint@mint ~ $ passwd
Enter new UNIX password:
Retype new UNIX password:
You must choose a longer password
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
mint@mint ~ $ sudo passwd
[sudo] password for mint:
mint is not in the sudoers file.  This incident will be reported.
I HATE THIS SECURITY SHIT
 
haha
 
You need to visudo.
 
Use su, dammit.
 
@RMartinhoFernandes nope
 
12:01 AM
Also, it's LiveDVD? Why on Earth LiveDVD comes with any user other than root?
 
@CatPlusPlus ?! because of security? Live CD's are excellent tools for secure servers.
 
@sehe I'm just spoiled by Gentoo, and all those fancy things seem silly.
 
@CatPlusPlus I can't use su, because I don't know the root password.
 
It shouldn't have password. Or just reboot into single-user mode.
 
@FredOverflow Have you tried it? Apparently, sudo su should work, and it is entirely possible it was special-cased just for that reason. See the other link again:
 
12:02 AM
"It shouldn't have password." is what every search result says, but apparently that's not the case on my computer.
 
@sehe I've always installed Arch from USB. It always dropped me straight into a superuser shell.
 
Don't use this silly distribution, then.
 
@sehe some of the comments imply that just su should work
 
@sehe sudo su results in mint is not in the sudoers file. This incident will be reported.
 
12:03 AM
sudo su shouldn't be any different than sudo X.
If it's not in sudoers, it can't sudo.
 
@CatPlusPlus Damnit. Read the docs
 
Is that a bug then?
 
@FredOverflow Make sure you don't give them your real name.
 
@sehe What docs?
 
Feb 19 at 22:58, by sehe
but the power of the web is routinely underestimated by legions
@CatPlusPlus lmgtfy
4
A: Shell script - Sudo-permissions lost over time

seheThe flexibility of sudo is widely under-estimated. This leads to very poor practices (like the sudo su - canon-ball surgery method). A much better method is to specificly allow the commands you intend to allow without use of a password: phill = NOPASSWD: /bin/ls, /usr/bin/lprm You can optio...

 
12:05 AM
And?
 
@FredOverflow I'm afraid so. Let me check what version I have lying around. Might take a while to find the CD
 
System is supposed to be secure, but allows to use "su" without password?
Why not just boot into root.
 
@RMartinhoFernandes You was wrong! I has done some (some) useful work on my renderer today
 
@CatPlusPlus If you don't bother to read, I don't bother to falsify sudo su shouldn't be any different than sudo X. It was simply untrue
 
Meh, fine, it allows aliases.
I never use sudo, so I don't really care.
 
12:06 AM
@DeadMG You didn't bet.
 
lol, it's true that I am also declaring myself to be wrong
 
@CatPlusPlus So you probably shouldn't claim stuff like that :) sudo X can be different from sudo Y, even across machines, logins, restricting parameters and optionally not requiring passwords. All of that isn't even referring to your 'meh' aliases
 
Still meh.
 
@CatPlusPlus You could see a doctor about your meh condition :)
 
12:09 AM
lol, I cannot even install Linux from the live CD because of some sudo error. What shit is this?
 
@DeadMG Somehow I'd have thought that caption should be 'DeadMG'.
@FredOverflow Bad karma?
 
@sehe Wut? That makes no sense.
 
funny how you say that, I also thought the cat looked more angry than "meh"
but I couldn't be bothered to keep looking
 
@RMartinhoFernandes What he said^
 
I'm gonna give Ubuntu a try now, and if that also doesn't work, I'm gonna stay with Windows XP.
 
12:10 AM
@FredOverflow I've never had any trouble getting root with a kubuntu cd
 
I assume the ubuntu live cds don't differ
@CatPlusPlus now that's a lot more meh than angry
 
@je4d true, but I don't remember having the problem with Mint either.
 
Ubuntu managed to get working installer at some point in their history.
 
@FredOverflow I can try right now using Mint 12 live CD...?
 
12:11 AM
@sehe neither do I, but that's because I never tried mint :)
although I keep thinking I should, it seems to be what the cool kids are running these days.
 
booting now
 
Wee, I managed to make a commit using git.
 
@je4d A tremendously bad reason to do anything.
 
Oooh. Now try to make a commit using msword
 
Git index is so damn stupid.
 
12:13 AM
@DeadMG meh
 
@CatPlusPlus For a moment there, I was about to say "That's just git commit. Great achievement."
And then I remembered.
 
@CatPlusPlus oooh. let's call it stupid because we're not used to it. Hint: I hate git index but it is -partly- what allows git's advanced features and speed of operations.
 
Also "git diff" returns nothing if you have everything in index, you of course have to use --cached.
I don't give rat's ass about git's advanced features or speed of operations.
 
@DeadMG the sarcasm doesn't work on SO chat.. if i took that literally I'd be on weed instead of ubuntu
 
@CatPlusPlus or --staged
@CatPlusPlus if windows, use TortoiseGit. It nicely hides the presence of the index for you
 
12:15 AM
Mercurial manages to do everything fine without being a pain in the ass.
 
@je4d Ubuntu is a drug?
 
@CatPlusPlus Even DeadMG can use it!
 
@RMartinhoFernandes If it is, I've got a decade-old habit
 
@FredOverflow was your problem in the livecd env or after installation? I just did
mint@mint ~ $ sudo ls
Desktop  Documents  Downloads  Music  Pictures	Public	Templates  Videos
Amazingly, copy/paste worked right out of the VBox window running gnome-terminal. I reckon the LiveCD includes paravirt drivers of some kind?
@je4d +1, I'm getting off it though
 
Woop woop woop, I have a nice monospaced chat now.
 
12:19 AM
@sehe on to something new? or just rehab?
 
@CatPlusPlus You mean everything?
 
@CatPlusPlus meh. git haz monospaced gui's (gitk, anyone)
 
That's doesn't sound good.
 
@je4d prolly Mint, or otherwise Debian. Still a bit undecided. But deffo not Ubuntu++
 
@RMartinhoFernandes Only messages and input.
 
12:20 AM
Isn't Mint some Ubuntu variant?
 
@je4d TBH I did look at XUbuntu (Xfce)
 
speaking of which
 
I've always used monospaced fonts for IRC, it works better.
 
@CatPlusPlus All messages, even if not code-formatted?
 
how can I get TortoiseHg to shut the fuck up about some files I removed?
 
12:20 AM
@RMartinhoFernandes Yeah.
 
I find that hard to read.
 
@RMartinhoFernandes Yes. But minus the Unity braindamage (and other things, like UbuntuOne integration)
 
@DeadMG Remove them via Hg.
 
@DeadMG Right click, "Remove"?
 
@sehe Ah, i never ran ubuntu proper.. kubuntu only
 
12:21 AM
You can't just remove tracked files and expect it to not complain.
 
nope, already tried that
they're still in big red letters on the list
 
They will go away when you commit.
 
I already did three commits since then adding new files
 
If they haven't got ! status, but R, then they're scheduled for removal.
 
still big red letters
 
12:22 AM
@FredOverflow currently a Mint installation is filling my RAM. I'm storing a VM in tmpfs
 
! are missing files.
 
no, it says "R"
 
@DeadMG Did you mark their checkboxes when committing?
 
but why the scheduled? I asked it to remove them now
 
@FredOverflow I had the keyboard layout questino during installation, though
 
12:22 AM
You always have to commit.
 
I did
repeatedly
and now it won't even push to bitbucket
what the fuck even is a "remote head"?
 
Well, did you commit those files?
 
WTF did you do?
 
It means you screwed up your history.
And have more than one head.
 
I moved the repo and I moved some files within it
 
12:23 AM
Tsk tsk.
 
that's all
what, do I need Mercurial's permission to move my own damn files?
 
Well, look at the log.
All operations on tracked files you do via Hg.
 
@DeadMG I've been moving repos around since ever.
 
Moving, removing, renaming.
 
well, I don't really care about the log
this is the current state of my repo and I want Hg to shut up and get on with it
 
12:24 AM
@CatPlusPlus That sounds nice
 
Gawd. If it says you'll create a new remote head, then you need to merge. Unless you really want an unnamed branch, but somehow I doubt it.
 
@sehe The problem was in the livecd. I couldn't even install!
 
merge with what? there's nothing there to merge with, just older versions
 
@FredOverflow What. You did click the 'Install Linux Mint' icon, no?
 
It's amazing how you always manage to fuck up.
2
 
@RMartinhoFernandes This thing does way too much and it gets in my way of simple things
all I want it to do is remember what my code looked like the last time I pushed "commit"
these branches and merging bullshit is just irritating me for no benefit
 
@sehe I went in the start menu, then "System" or something, and then "Install Linux Mint" or something. It showed a window explaining some sudo blah, and then I clicked Okay or something, and then... nothing happened.
 
@DeadMG Branches don't get created automatically.
 
well I sure didn't create one myself
 
It's not even easy to create them accidentally.
 
12:27 AM
 
Is that different from the start menu entry?
 
@FredOverflow Granted ^^ that is with the Mint 12 livecd... Haven't got the USB
 
I don't even know what the problem is, there's no difference between my repo as on BitBucket and as on here, except the one here has some more commits
 
@FredOverflow Pretty sure it's the same.
 
which I would like to push to BitBucket
 
12:30 AM
@FredOverflow does it say 'Live session user' for you? Anyways, you might do good downloading another image - what version did you say you used?
 
and TortoiseHg kindly says "use push -f to solve the problem" and then doesn't mention anything about "push -f" or where to find it or anyshit like that
this thing is a pile of junk
 
lol
It means $ hg push -f on the command-line. Like grown ups.
:P
 
Ok, 201109 Xfce, lemme find out what that is in versions
 
great
what about the billion other command line options it usually passes?
and it's not really serving it's purpose if I have to go use the command line to help it out like it's a lost lamb
nor do I even know why this push is problematic or why it won't just shut up about those files I removed like I asked it to
 
Did you mark their checkboxes?
 
12:32 AM
Lol.
 
It only commits what you mark.
 
well, I didn't check their checkboxes for that exact reason, and I asked it to remove them
 
Lol.
You have to commit removals.
 
11 mins ago, by R. Martinho Fernandes
@DeadMG Did you mark their checkboxes when committing?
 
12:34 AM
I did commit after removing them
three fucking times
 
With the damn checkboxes checked.
 
Right, but you committed nil.
 
but I don't want to commit those files
they don't exist anymore
 
You commit the removing, not the file.
 
@FredOverflow you mean you used Editions for Linux Mint 9 "Isadora"!? That's ancient
 
12:34 AM
GIF!
 
Get him!
 
I just can't express this otherwise.
 
It doesn't make my screen flash. Is it supposed to?
 
@LucDanton Isn't that the point of the giant "REMOVE" button?
what good is the remove button if it doesn't remove things?
 
12:35 AM
@DeadMG Sorry, I don't know how that works.
 
It's a transaction. It's not in effect until you commit.
 
@DeadMG std::list::remove much?
 
I mean, that's VCS 101.
 
well, the files don't exist, I asked it to remove them, and then I pushed the giant "Commit" button
the fuck more does it want from me?
 
We've been telling you what for past 10 minutes.
 
Xeo
12:36 AM
Okay, my link to TVTropes for the Overkill fired back.
 
2 mins ago, by Luc Danton
11 mins ago, by R. Martinho Fernandes
@DeadMG Did you mark their checkboxes when committing?
 
oh, wait, to copy my 30-character Bitbucket password manually on to the command line to babysit it
because the CLI won't accept from the clipboard from KeyPass
 
@DeadMG Auto-type.
 
@FredOverflow don't want to rub it in, but here's my freshly installed Mint in a VB entirely in RAM disk-based VM:
 
Use SSH key like a grown-up.
 
12:38 AM
 
@CatPlusPlus Don't mess him up even more.
 
ok
more directly, I can't seem to enter any input into HG as my password, even typing it in directly
 
It's not echoed.
 
Tip: it won't show up.
 
@sehe What? No, I downloaded the latest Linux Mint 12 Debian.
 
12:39 AM
It has this giant thing saying "password: " with the caret after it
 
@sehe I envy you. Anyway, booted Ubuntu and sudo gparted works just fine. Finally.
 
what am I supposed to do except type in my password?
 
@sehe You have Mint in Visual Basic?
 
It does not echo.
 
12:39 AM
Which means, it won't show anything on the screen.
Which doesn't mean it doesn't get the input.
 
giant pile of junk
 
Gosh, what's wrong with you?
 
Also, you actually can paste a password there.
 
@RMartinhoFernandes i think he means virtualbox
 
12:40 AM
sorry, I failed to notice the difference between "A bunch of text on the console asking for my password" and "An interactive bunch of text on the console asking for my password" when they present identically
why even prompt the user for their password if they can't type it in?
 
Oh, right, it's obviously not interactive when it asks for a password.
 
You can type it in.
 
no, I most assuredly can't
 
It just doesn't show you the characters, not even asterisks.
 
@FredOverflow aha. Debian Edition :)
 
12:41 AM
I pushed the letter keys on my keyboard and nothing came up
 
Can I post that gif again?
 
oh, right
 
@DeadMG input output redirection? Not a proper terminal?
 
so actually, it was working but I had absolutely no way of knowing that
 
@sehe yeah, I saw that and wondered if it was a bug in the debian variant
 
12:42 AM
2 mins ago, by Cat Plus Plus
It does not echo.
 
It's a standard security precaution.
 
@DeadMG ........
 
@LucDanton I see you're playing echo's role tonight.
 
what, instead of printing an asterisk?
big security breach there
 
@DeadMG Does remind me a lot of the Hunter episode
 
12:43 AM
Asterisks reveal the length.
 
@RMartinhoFernandes I'd post one of those popcorn reaction gifs to express how I feel but I don't want to get on your bad side.
 
1 min ago, by Luc Danton
2 mins ago, by Cat Plus Plus
It does not echo.
 
right, cause you couldn't randomly print one sometimes or add an extra one?
 
We need an an-echoic chamber, really
 
12:43 AM
right
so glad that Mercurial has finally stopped bitching and done it's job for once
now I can go to bed
 
To be honest, I think hiding the password in any manner is silly.
 
@sehe Would you recommend against the Debian version?
 
If there's someone behind me looking in, I can always punch them in the face.
 
well, it's not like someone looking over my shoulder can realistically memorize my 30 character password
 
@DeadMG but they can photograph it
 
12:45 AM
oh noes
 
@RMartinhoFernandes it can be in your RDP cache, it can be in your console log
 
I only have a local copy of all the data on BB's server
 
@DeadMG Shute. I forgot noone can buy a camera and they weigh 2 kilos so you can't really bring them unnoticed
 
@sehe See, if you have access to my console log, I'm boned already.
 
@sehe An awful lot of effort to go to to gain access to my repository of random personal projects
 
12:46 AM
@RMartinhoFernandes True. I'd still prefer it if password were just unstorable. So hiding is good in my book. It also underlines the fact the devs give a shit about your security. I care about that
 
I think there's read-only public access anyway
 
@DeadMG Why use a password at all
 
@DeadMG The password can be used to destroy it.
 
It's okay, he has backups.
 
@FredOverflow Not at all. I just used the non-debian version for my little test :)
 
12:48 AM
@sehe Are you kidding? Mercurial is the most fiddly bitchy shitty unusable thing ever, and that's just with me using it. If I had a bunch of random people trying to modify my repository, it would probably self-destruct from all the worthlessness.
 
@LucDanton or if he doesn't, he'll start making them after someone wipes the projects archive
 
well, at the very least, I would likely lose the ability to use it.
 
Remind me never to tell him to use git. Not that I would anyway.
 
@DeadMG ?! you basically said there was no harm if that happened?
 
12:48 AM
Great, Ubuntu can't play DVDs :)
Installing the plugin failed.
 
In DVCS environment, you rarely have multiple people writing to the same repository.
 
@sehe Would you mind testing the debian-version? For the sake of my sanity? :)
 
@FredOverflow wut? Of course it can. What did it say? You have an internet connection, do you?
@FredOverflow I was on it already
 
Pulling each other changes is way superior to pull/merge dances around a shared repo.
 
I am chatting with you, of course I have an Internet connection.
 
12:50 AM
@FredOverflow On the U*u box...
 
I only have one computer.
 
time I went to bed I think... some of us need sleep
 
@je4d nn
 
@FredOverflow fwiw, I find ubuntu a pain for media, there used to be a medibuntu repo that provided all the helpful nonfree stuff, but it's not maintained now afaik
but I always make it work somehow
 
Wasn't Ubuntu supposed to just work for that kind of stuff?
 
12:52 AM
(really goes)
 
Anyway, if I click on the DVD logo and then "Open Movie Player", the computer asks me "Search for suitable plugin?" which I confirm with "Search". It then asks me "Update package list?" which I confirm with "Update". Then it downloads some kbs but quits saying "Failed to download repository information".
 
@je4d You can check out any time you like, but you can never leave.
 
@je4d oh, it's one of the first things I add. I still have it enabled without issues:
o, not relevant, since Debian != ubuntu
@FredOverflow That means sources are listed that cannot be retrieved. Could you post /etc/apt/sources.list and perhaps /etc/apt/sources.list.d/*?
@RMartinhoFernandes +1. It does for me. Sometimes I add a lot of packages from UbuntuStudio just for simplicity - get the whole sshebang in one fell swoop
 
# /etc/apt/sources.list

deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ dists/oneiric/main/binary-i386/
deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ oneiric main restricted
deb http://archive.ubuntu.com/ubuntu/ oneiric main restricted
deb http://security.ubuntu.com/ubuntu/ oneiric-security main restricted
deb http://archive.ubuntu.com/ubuntu/ oneiric-updates main restricted

sources.list (END)
sources.list.d is empty
 
@FredOverflow oh , yeah, ubuntu now, was getting confused
@FredOverflow That should work, but you might try commenting (#) the cdrom lines
 
12:57 AM
I don't see why I have to deal with this crap just to watch a DVD.
 
# /etc/apt/sources.list

//deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ dists/oneiric/main/binary-i386/
//deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ oneiric main restricted
deb archive.ubuntu.com/ubuntu oneiric main restricted
deb security.ubuntu.com/ubuntu oneiric-security main restricted
deb archive.ubuntu.com/ubuntu oneiric-updates main restricted

sources.list (END)
:P
 
Maybe I'll give MEPIS a try.
MEPIS () is a set of Linux distributions, distributed as Live CDs that can be installed onto a hard disk drive. MEPIS is developed and maintained by an active community begun by Warren Woodford and the eponymous company MEPIS LLC. The most popular MEPIS distribution is SimplyMEPIS, which is based primarily on Debian stable. It can either be installed onto a hard drive or used as a Live CD, which makes it externally bootable for troubleshooting and repairing many operating systems. It includes the KDE desktop environment. MEPIS LLC offers senior consulting services for product strategy, ...
 
@RMartinhoFernandes Huh. I didn't think // would work. Are you mocking stuff?
 
@sehe Yes, I'm mocking. It doesn't work.
 
@FredOverflow For your sanity, not so much:
 
1:00 AM
So it just works on your computer? That's strange.
 
So, that's the famous gparted.
 
That's Mint 12 Debian Edition
 
64 bit?
 
@RMartinhoFernandes Yup
The other one was way more fun, but can't find it now
 
I think I've only ever used fdisk or cfdisk.
 
1:05 AM
It was basically this bug, that was not my patch: git.gnome.org/browse/gparted/commit/…
 
0
Q: C++ Static Methods (In different Classes) (Like Java's)

BrinkHow would I go about making static methods that are used like the static methods in java when I have multiple .cpp files? In java you can reference another class by using MyClass name = new MyClass(); and every variable in this class will be the same when called in any other file that you have. ...

Can you understand what the heck is meant here?
 
@RMartinhoFernandes He wants a superior alternative to foo.static_member(blah);.
 
@RMartinhoFernandes found the other gparted patch alright: mail.gnome.org/archives/commits-list/2011-March/msg12796.html
 
@LucDanton Oh.
Ohhhh.
 
> Simply replacing the ustring with std::string would reduce the time to about 1.5 minutes. Still bad. Also, I didn't want to lose UTF8 awareness.
 
1:10 AM
> I think you would use a header file. All methods are by default "static" in C++, unless they are contained within an object. Each class does not represent one object, but can contain multiple objects or zero objects.
Lol.
 
@RMartinhoFernandes cfdisk is nice, but I resent that it refuses to work if there is the tiniest bit of inconsistency in the partition table. Makes is useless to fix things
 
@sehe Did you boot from USB stick or CD?
 
@FredOverflow CD
 
Do you think that could make a difference?
 
> So you do not need to define a whole new object and if you have initalized one MyClass somewhere throughout all of your classes, using MyClass:: will be able to use updated values? – Brink 28 secs ago
 
1:12 AM
Wait, how did you put 1 GB on a CD? :)
 
@FredOverflow It could, but it shouldn't
 
@LucDanton I'm not so sure anymore.
 
@FredOverflow s/CD/DVD/
/dev/sr0              1.1G  1.1G     0 100% /media/Linux Mint Gnome 64-bit
 
@RMartinhoFernandes This question is not good for sanity.
 
@FredOverflow installation takes an annoyingly long time. Somehow the ubuntu install seemed a lot faster
And I nearly ran out of tmpfs space:
df -h
    none                  6.0G  5.2G  857M  87% /tmp
# no prob:
sudo mount -o remount,size=7g /tmp
df -h
    none                  7.0G  5.3G  1.8G  75% /tmp
 
1:26 AM
Hey guys, I have a question concerning PHP and HTACCESS, I posted it here: stackoverflow.com/questions/9594269/htaccess-and-user-accounts but no one seems to want to answer it. If anyone knows it, can someone please help me here?
 
Is there a standard close-as-dupe-target for "Why isn't this calling the copy constructor (hint: copy elision)?"
 
Server configuration questions go to Server Fault.
 
It's entirely Apache-specific, and not related to PHP in any way.
 
Oh. Well, whatever. It doesn't belong here.
 
1:29 AM
Well I don't find any ACTIVE chat room...and no one wants to answer it on SO
 
Chat rooms are for chatting, not questions entirely unrelated to the chat room.
 
But I suppose the PHP regulars might know about it.
 
@user1079641 But you can find the answer about 20 times over on SO
 
@RMartinhoFernandes I wouldn't expect too much.
 
> But won't this be declaring a new instance of foo, and it will go back to the default variables that have been set up in the class? I am looking to declare an object of foo, but have it be able to use variables that have been changed from another class. – Brink 5 mins ago
@Cat Why didn't I listen to you?
 
1:30 AM
Told ya.
 
@user1079641 I did this stuff before on occasion, but frankly, it is not my hobby and I forgot some of the details
 
I don't remember the last time I had to use mod_rewrite.
 
Turns out that the static method guy wasn't actually referring to static methods.
 
didn't know you could rewrite mods...
@LucDanton meh. Did you find out what he was referring to?
 
Get out of that question before it's too late! Sanity points!
 
1:32 AM
Yeah, he produced actual Java code. Fairly innocuous question.
@CatPlusPlus I have a slight headache right now. Is it too late?
 
Counterbalance with some carefully applied DF.
 
@LucDanton :)
 
Ooooh what a nice idea. I wasn't getting anything done anymore anyway.
 
Really off to bed now :) Cya. @FredOverflow good luck
 
@LucDanton Even the Java code sucks!
He's creating an instance to call what are static methods.
0
Q: c++ overloaded + operator does not return a temporary object , why?

AlexDan here is the source code: #include<iostream> using namespace std; class cat{ private: int a; public: cat():a(1){ cout << "const : " << this << endl; } ~cat(){ cout << "dest : " << this << endl; }...

Close votes, please.
 
1:42 AM
@sehe Thats strange, I prepared the USB stick with a different program (UNetBootIn instead of Universal USB installer) in a different USB slot, and now everything works just fine?!?
 
@RMartinhoFernandes OP doesn't know what they're talking about? Well I never.
I should finally get to that UI thing, since I'm not sleeping anyway.
 
> I am working on a VS2010C++ console application, and have created a Manager class that ―
Sigh.
 
Lol.
And have created a Manager class that manages!
 
@RMartinhoFernandes : did you find an answer for that question ?
 
For what question?
 
1:50 AM
about c++ overloaded + operator
 
Yes, it has been answered before. It's copy elision.
 
I did not understand why this copy elision is used just in the + operator and not in others like = operator
 
It's not mandatory.
In the assignment operator, the result is not stored, so there is no copy that can be elided.
It should return a reference anyway, like Loki suggests.
 
in the assignment operator the result is stored, bcz I did return by value not by reference
 
Stop worrying about when copy ctor runs and when it doesn't.
 
1:55 AM
Im mean it stored temporatory in the stack
 
You should have only copy logic in copy ctors, and then whether it runs or not is up to the compiler.
So just stop.
 
@CatPlusPlus that's really make sense,
what i was worried about is, why this does not work as it supposed to work , so I thought im doing something wrong
 
@AlexDan There must be one copy to create the result value because it's not returning a local variable.
Only local values can be safely constructed directly in the final place.
 

« first day (508 days earlier)      last day (4423 days later) »