Maybe there is the same question but I haven't found it.  I have following code:  class MBase {     public:         ~MBase() { cout &lt;&lt; "Base destructor\n" &lt;&lt; endl; } };  class MF: public MBase {     public:         ~MF() { cout &lt;&lt; "MF Destructor" &lt;&lt; endl; } };  class MS: public MBase {     public:         ~MS() { cout &lt;&lt; "MS Destructor" &lt;&lt; endl;} };  int main() {      unique_ptr&lt;MBase&gt; ptr1 = unique_ptr&lt;MF&gt;(new MF());     unique_ptr&lt;MBase&gt; ptr2 = unique_ptr&lt;MS&gt;(new MS());      return 0; }   And there is output   Base destructor  Base destructor   Isn't it right? Why derived destructors weren't called? What I have to do to fix that?
I have a solid understanding of most OOP theory but the one thing that confuses me a lot is virtual destructors. I thought that the destructor always gets called no matter what and for every object in the chain. When are you meant to make them virtual and why?
If an effect would prevent a spell from doing damage, does it continue to prevent that damage after the spell changes zones? Anthony casts , targeting Nathan's .  Nathan casts and resolves , choosing to 1) prevent all damage that would be dealt by Searing Blood this turn and 2) put a +1/+1 counter on Elvish Mystic.  Searing Blood resolves, deals no damage, and goes to the graveyard.  Anthony casts and resolves  to kill Elvish Mystic.  Searing Blood triggers from the graveyard, because Elvish Mystic died. Does the prevention effect created by Dromoka's command still apply to it after it changes zones? In other words, will Searing Blood deal 3 damage to Nathan? Repeating “will” for two verbs with “and” PUA.Phishing.Bank Found Repeat the same reference in footnote on different pages If two variables have 0 correlation, why are they not necessarily independent? Are zero correlated variables independent under special circumstances ?  If possible, I am looking for an intuitive explanation, not a highly technical one. Someone told me that the English language is special (compared to German, at least) in the way that every noun could be used as a verb. I think this phenomenon is called supine. Is this correct?  Examples:   house → to house well → to well phone → to phone table → to table lamp → to lamp   At first it seemed to me that this would work with all nouns. But then I thought of the following nouns, and I think they can't be used as a verb, am I right?   person →(?) to person human →(?) to human baker →(?) to baker computer →(?) to computer example →(?) to example   It seems that nouns describing people (person, human, baker) are exceptions? But it works for "author" ("to author"). Hmm. "Computer" seems smiliar to a person's job to me (could be a human instead of a machine that computes).  But what about "example"? I think "to example (something/someone)" is not possible, is it? What would a native speaker understand/think if someone says:      He examples.      I want to example it/him.   Which are the nouns that can't be used as a verb? Are there rules for creating level 0 characters? Are there rules for creating level 0 characters in 5e? I've been running a campaign where the players begin sub-standard and 1st Level characters are generated in-game as the story unfolds. I just made them all begin with a couple of hp and 9's across the board for ability scores (since I wanted them at a disadvantage compared to the average human, and to fail at a generic DC10 task more often than succeed).  It was a real grind, with many opportunities for TPK (total party kill) when faced with even a single challenge rating 1/2 adversary (obviously I fudged the dice a little to prevent this). Are there published rules for this?  If there aren’t published rules for this, has anyone tried doing something like this? Any first hand experience on how it has played out would be welcome. Why are most of the main characters White/English in Game Of Thrones? Okay, I was thinking about the series of Game of Thrones and all the battles and stuff, and I thought why aren't there any characters beside White/English characters that have main/important roles? Can you name any that are alive that are anything else beside White/English?   This is a short list of some of the main characters (all White/English):   Cersei - Queen and important political Lannister. Jaime - Guy who is father to the late king and is King slayer. Tyrion - Short guy in politics who is currently on the run(that's what the wikia told me). Daenerys - Queen who is freeing people and dragon owner.   And the list goes on and on, why aren't there any characters other than Caucasian characters that are in the series?  I've read a lot of articles on the internet about this after Googling around, and none of the articles I read had any scientific evidence or research - it was just conjecture.  So, are there any actors/characters from racially diverse backgrounds? I'm hoping for canon evidence (pictures, links, quotes) from the book and/or TV show. In the case of actors, can you also list their role?    This is not intended as a racist question. I just want to know why, since the story takes place over a large area, there doesn't seem to be any diversity. Evaluating the integral $\int_0^{\frac{\pi}{2}}\log\left(\frac{1+a\cos(x)}{1-a\cos(x)}\right)\frac{1}{\cos(x)}dx$ .gitignore for Visual Studio Projects and Solutions Why do we use the object instead of the subject pronoun in constructions like "stupid me"? I'm trying to find out how come we say lucky me and stupid us rather than lucky I and stupid we. My understanding is that this is not a recent invention, but a relic from the distant past where it was a dative construction. However, I don't see the reason for using any case other than the nominative in this construction to begin with.        He went surfing. → Lucky him went surfing.   I got pulled over. → Stupid me got pulled over.   They bought a house. → Thoughtless them bought a house.      This is rather intriguing. After thinking about it for a while, I couldn't come up with any other language, Germanic or otherwise, where simply introducing an adjective would dictate a change of grammatical case. This appears to be an English peculiarity. How far can it be traced back? Can anyone comment on its background? I need to find out the modular inverse of 5(mod 11), I know the answer is 9 and got the following so far and don't understand how to than get the answer. I know how to get the answer for a larger one such as 27(mod 392) but am stuck because they are both low numbers.  11=5 (2)+1  5=1 (5) Could Muggles enter Diagon Alley from Leaky Cauldron? Courtesy of , I found the a bit of  (currently un-cited):  The Leaky Cauldron The pub serves as a way of entering into Diagon Alley from the Muggle world for Muggle-borns and their parents (both of whom, until the first letter from Hogwarts, have no magical knowledge or means of entering). The rear of The Leaky Cauldron opens onto a chilly little courtyard, in which a particular brick must be tapped three times to open a path to Diagon Alley.  But from what I can see, Muggleborns and their parents wouldn't be able to enter from Leaky Cauldron, because - based on what I can tell - that requires one to use a wand:  He {{Hagrid}} tapped the wall three times with the point of his umbrella. The brick he had touched quivered – it wriggled – in the middle, a small hole appeared – it grew wider and wider – a second later they were facing an archway large enough even for Hagrid, an archway on to a cobbled street which twisted and turned out of sight.  Is there some canon information confirming the Wikipedia assertion that Muggle parents and not-yet-wand-owning Muggleborns could enter Diagon Alley from the courtyard behind Leaky Cauldron? How to redirect and append both stdout and stderr to a file with Bash? I got my Galaxy S4 today (i337M), it's wayyy better than my old SII hehe.  I immediately removed the stock Bell firmware and put the latest snapshot available from CyanogenMod.  I'm wondering if it's possible to convert apps like S Planner, S Note, S Health to CyanogenMod.  Current stock android version available for i337M is 4.2.2. Latest Android version for CM is 4.4.  If I install CM 4.2, can I import/install the APKs and then upgrade to 4.4?  Hope you'll be able to help me :) "I have never said" versus "I never said" I have never said this.   I never said this.    Is the usage of have in the first sentence justified or grammatically correct?   What is the difference in meaning?   When should I use one form over the other? Rsync filter: copying one pattern only What is involved in converting a PC video card to have boot screen on the Mac? I've got a PC video card that I'd like to get boot screen support for on my Mac Pro. In particular, it is a Gigabyte R9 270X. The card is supported on the Mac once it boots, but I would like to get boot screen back since my old 8800GT has been baked in the oven a few too many times by now :-)  I've seen numerous guides on the internet about flashing the BIOS on the video cards and also ones that speak about adding the EFI BIOS, but in the haphazard forum approach, it isn't clear how this all works. To some degree, I've recently come away with the notion that you don't get rid of the existing BIOS, but rather add an EFI partition to it that the Mac would recognize. If that assumption is correct, then it would lead me to believe that adding an EFI BIOS that works on a similar card (R9 280X or 7950 which are both close but not quite) should work since I'm assuming that the existing BIOS would be similar enough to hook in. Failing that, I'm not clear how you would get a card-specific EFI BIOS for boot screen support.  Anyone an expert on this? I'm just really having a hard time trying to sift through all this and hoping to get a more direct answer! How can I mute the YouTube app while playing music on another player? Convert integer to hexadecimal and back again