I'm looking to write a generic class (like this: template &lt;Class T&gt;) in C++11 but I was told that the implementation could only be written in the .h file, why is that?  I wrote some code (1000 lines) and it's a complete mess, I don't know where some pieces of code went. Is there any way to separate implementation and declaration?
Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)
What's the downtime limit of a domain controller (DC)? On my VMware  environment there are 10 VMs running. One of the VMs is the domain controller (). The other VMs are configured with a static DHCP and DNS IP address in their network settings.  How long is the downtime limit of my domain controller? How can I fix "unbalanced brackets" in my data tag? Joint distribution of a Normal and Truncated Normal I have a random variable $X\sim \text{Normal}(\mu,\sigma)$ and have the transformation $Y=\max\{0,X\}$.  Is the distribution of $Y$ a truncated normal where it is truncated to live on the positive half of the real line?  Secondly, is there a closed form solution for the joint distribution of a Normal random variable and a truncated Normal random variable? Biblatex authoryear dashed for entries with no year I'm using biblatex authoryear and have multiple entries of the same author that do not have a year. When I cite them there are letters shown to distinguish them:   But in the bibliography those letters are not shown and you can only distinguish them by the title. Is it possible to show the letters in the bibliography, too?  \documentclass[a4paper,12pt]{article}% \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{filecontents} \begin{filecontents}{bib.bib} @BOOK{bar1,   title = {Text One},   year = {},   author = {Firstname Lastname}, } @BOOK{bar2,   title = {Text Two},   year = {},   author = {Firstname Lastname}, } \end{filecontents}  \usepackage[backend=biber, style=authoryear-icomp, dashed=true]{biblatex} \addbibresource{bib.bib}  \begin{document}  \cite{bar1} and \cite{bar2}  \printbibliography \end{document} After offering a bounty to , I realize that I cannot comment on the question because I no longer have the required reputation. Is it possible to change this behavior, so that the bounty owner can comment only on the post with the bounty irrespective of their reputation? While bounty owners are told that they'll lose privileges at the time they place a bounty, it makes sense to allow them to interact with potential answerers/commentators to help solve the problem, or at least provide additional information. Using a singular or plural verb after "and/or" If the subject of a sentence is separated by "and/or", should the verb be pluralized, as with "and", or agree with the rightmost subject, as with "or"? For example:     His co-workers and/or his boss was at fault.   vs.     His co-workers and/or his boss were at fault. Story featuring smart people sent on a space mission to nowhere The story in question featured, as the vague title suggests, a "space mission" that is really a cover for forcing a bunch of really smart people to be in close proximity to each other for long enough that they can truly evolve their collective intelligence. I recall them developing new maths and, e..g, "farseeing" and eventually figuring out that while there was no planet at the end of their journey as they were told, they were able to construct one for themselves. How do I get rid of eggs? Multivariable Delta Epsilon Proof $\lim_{(x,y)\to(0,0)}\frac{x^3y^2}{x^4+y^4}$ --- looking for a hint I have the limit $$\lim_{(x,y)\to(0,0)}\frac{x^3y^2}{x^4+y^4},$$ and would like to show with an $\epsilon-\delta$ proof that it is zero. I know with a situation like $$\left|\frac{x^4y}{x^4+y^4}\right|\leq y$$  or something similar, but I can't find a way to do the same thing here, as no single term in the numerator is of sufficient degree, although I think I could get this with a small hint. Proof verification of a number theory problem involving sequences. Are humans the only animal that requires "clean water"? Get value of R, G, B by color Password protect files/folders using cli I have some important documents that I need to protect from anyone else having access to my machine.   The problem being the other persons have access to my machine via root account so changing the file permissions is not a option for me. I have seen apps like cryptkeeper but I was wondering can I password protect my files/folder by command line mode in ubuntu. In a situation where say a group (or at least a plurality) of men is being addressed — for example on a sign passed by many married men — which is correct?  &quot;Remind your wife.&quot;  or  &quot;Remind your wives.&quot; I have a question regarding selections in ArcGIS for Desktop. Assumed I have one layer in ArcMap and I have selected two of five features.   Is it possible to get a list of all selected features by using Python?   It would be fine if there is a way to get one special (or all) attribute(s) of the selected features stored in a list that can be written into a txt file.  Is it possible to do this in ArcGIS for Desktop? How can I read input from the console using the Scanner class in Java? When you boot from live CD, or doing the first boot after installing Ubuntu, splash screen looks awesome. But as soon as you enable nvidia-current driver, installed with apt-get, splash screen goes all crazy.  With crazy I mean that resolution is very low, font(I assume) is very weird and it all looks like it's been broken.  This happened with 10.04 and now again with 10.10.  How do I fix splash screen after enabling nvidia drivers? I've got a development webserver on an Ubuntu box inside of VMWare Workstation 7.1.3. I'd like to run a web browser on a Windows machine (the host OS) for actually testing a web page I'm working on -- hard to run IE tests in Ubuntu :)  However, if I simply try to ping the IP given to the ubuntu VM (192.168.83.137) (or open it in my browser for that matter), it seems the host cannot communicate with the guest.  How do I allow the guest OS to communicate with the host when the guest is running in NAT mode? How to add a class to a given element? There are no compact minimal surfaces