int main()  {     Pair&lt;int, int&gt; A = makePair (10, 20);     cout &lt;&lt; A ;  return 0; }   it give me error here (makePair is not define) and i define it in header file  template&lt;class T1, class T2&gt; class Pair{ private:     T1 first;     T2 second; public:     Pair(T1, T2);     Pair() {};     Pair&lt;T1, T2&gt;  makePair(T1  a, T2  b);     void operator==(const Pair&amp; other);     friend ostream&amp; operator&lt;&lt;(ostream&amp; out, const Pair&lt;T1, T2&gt;&amp; A); };   and this is another file called pair.cpp that i used a template classes in it  template&lt;class T1, class T2&gt; Pair&lt;T1, T2&gt; makePair(T1   a, T2   b) {     return (Pair&lt;T1, T2&gt;(a, b)); }
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.)
Your last flag was declined - no it wasn't I went to flag something, and in the flag dialog I got the message  "Your last flag was declined - please review it before flagging this post!"    That's all well and good, but when I went to review my flags, the statement is not accurate.  My last 5 flags were all marked 'helpful'.  The 6th down the list is marked 'declined', but that wasn't my last flag.  The message should probably be modified to correspond to the actual condition that triggers it.  Perhaps it should say     One of your flags was recently declined - please review it before flagging this post!   I'm going to guess that this message is triggered if, of all the flags of mine that have been handled by a moderator, the one that was most recently handled was declined. This isn't necessarily the last flag that I raised (the one I raised most recently), as moderators might handle them in a different order than I raised them, and it's not necessarily the flag at the top of the list.  Thus, calling it my "last" flag seems like it could cause confusion.  Yes, I realize this is extremely minor. I want to draw a TikZ matrix with its border and I would like to define the distance between most external matrix nodes and matrix border. Something like a matrix inner sep. If I change inner sep in matrix options declaration, all nodes inside the matrix also change its inner separation.      I know how to do it with fit library. I just want to know if its possible without it. Can a sql server table have two identity columns? I need to have one column as the primary key and another to auto increment an order number field. Is this possible?  EDIT: I think I'll just use a composite number as the order number. Thanks anyways. Seems like a bug:  The user:   Edits a question Then, he decide to close it. Clicks on the Close button. The popup doesn't appear. Refreshes the page. Click on the close button. The popup appears.   After editing in the link appears a hash: #. But I don't think that this is the problem because if I add the hash without editing the close popup appears.  It's minor, but I think that is good to be reported and solved.  Edit: The close popup doesn't open after we click an edit has been made to this post; click to load. Why does Li+ ion move to cathode in Li-ion battery? Difference between force.com and salesforce.com? What the difference between the two?  This description seems to be a bit out of date and underspecified. Smooth option sometimes produces incorrect arrow tips in PGFplots Is $\{\frac{m}{10^n}\mid m,n\in\mathbb Z,\ n\geq 0\}$ dense in $\mathbb R$? The set $S$ of real numbers of the form $m/10^n$, $m,n$ integers and $n$ greater than or equal to $0$, is a dense subset of $\mathbb R$ or not??   I know dense means closure of $S$ in $\mathbb R$ is $\mathbb R$ then it will be dense. How to prove or disprove I have no idea. I have a problem with arscalssica style in combination with classicthesis.  The text under the chapter title starts always at the same position, independently on how long is the chapter title, which produce this ugly behaviour:   The code I used to generete this output is really basic:  \documentclass[10pt,a4paper,twoside,openright,titlepage,fleqn,headinclude,footinclude,BCOR5mm,numbers=noenddot,cleardoublepage=empty,tablecaptionabove]{scrreprt} \usepackage{subfig} \usepackage[eulerchapternumbers,subfig,beramono,eulermath,pdfspacing]{classicthesis}  \usepackage{arsclassica}  \usepackage{blindtext}  \begin{document}     \chapter{\blindtext}     \blindtext \end{document}   The compilation raises the following warnings:  C:\Program Files (x86)\MiKTeX 2.9\tex\latex\koma-script\scrreprt.cls: Class scrreprt Warning: You've used obsolete option `tablecaptionabove'. C:\Program Files (x86)\MiKTeX 2.9\tex\latex\classicthesis\classicthesis.sty: Class scrreprt Warning: Usage of package `titlesec' together(scrreprt)              with a KOMA-Script class is not recommended. C:\Program Files (x86)\MiKTeX 2.9\tex\latex\titlesec\titlesec.sty: Package titlesec Warning: Non standard sectioning command detected(titlesec)                Using default spacing and no format. C:\Program Files (x86)\MiKTeX 2.9\tex\latex\titlesec\titlesec.sty: Package titlesec Warning: Non standard sectioning command detected(titlesec)                Using default spacing and no format. C:\Program Files (x86)\MiKTeX 2.9\tex\latex\titlesec\titlesec.sty: Package titlesec Warning: Non standard sectioning command detected(titlesec)                Using default spacing and no format. C:\Program Files (x86)\MiKTeX 2.9\tex\latex\titlesec\titlesec.sty: Package titlesec Warning: Non standard sectioning command detected(titlesec)                Using default spacing and no format. C:\Program Files (x86)\MiKTeX 2.9\tex\latex\titlesec\titlesec.sty: Package titlesec Warning: Non standard sectioning command detected(titlesec)                Using default spacing and no format. C:\Program Files (x86)\MiKTeX 2.9\tex\latex\classicthesis\classicthesis.sty:373: Package scrreprt Warning: Activating an ugly workaround for a missing(scrreprt)                feature of package `titlesec` on input line 373. C:\Program Files (x86)\MiKTeX 2.9\tex\latex\arsclassica\arsclassica.sty:192: Package hyperref Warning: Option `hyperfootnotes' has already been used,(hyperref)                setting the option has no effect on input line 192. C:\Program Files (x86)\MiKTeX 2.9\tex\latex\arsclassica\arsclassica.sty:192: Package hyperref Warning: Option `pdfpagelabels' has already been used,(hyperref)                setting the option has no effect on input line 192   The behaviour is ok if I do not use arsclassica but only classicthesis: PXE Boot Server Installation Steps in Ubuntu Server VM why __getitem__ cannot be classmethod? Disproving the statement "If $f(z)$ is not an entire function, then $g(z) = f^2(z)$ is not entire.” If $f(z)$ is not an entire function, then $g(z) = (f(z))^2$ cannot be an entire function.”  From this statement why would saying &quot;Let $f(z) = \sqrt z$, assuming that it is a branch that takes $−1$ to $i$. Then it is not analytic on the branch cut, but $g(z) = (f(z))^2 = z$ is obviously an entire function.&quot; Not be a proper example to disprove this statement/ be a incorrect counterexample? I understand that for $\sqrt z$ to be a incorrect counterexample means it is not analytic on the branch -1 to I, therefore not entire. However I thought $\sqrt z$ would be analytic throughout the whole branch cut from -1 to i. Since on the complex plane, $\lim_{z \to -1} \sqrt z$ exists as it would approach $i$ in that case, and in the other case $\lim_{z \to i} \sqrt z$ it approaches $\sqrt i$ meaning that at least on that branch cut in the complex plane it is continuous everywhere, therefore the partial derivatives exist everywhere on the branch cut meaning it is analytic, but this assumption seems to be incorrect. What am I missing or not understanding here. Precisely, I don't understand why $\sqrt z$ would not be a proper counterexample to the statement. What is the order of the Crisis on Earth X episodes in the Arrowverse? Performance evaluation of auto.arima in R and UCM on one dataset I started evaluating and comparing some methods in forecasting. I used Price of dozen eggs in US, 1900–1993, in constant dollars in the R software FMA package. I held out the last 10 years for assessment of forecast. Below are the results:  I used auto arima method in the R software. Obviously the results are way off. Am I doing something incorrect ? Below is the forecast. It does not recognize the declining trend.     I also used an unobserved components model (UCM) and obtained a good forecast,  as below.   Without outliers/level shifts there are very large standard errors and therefore wide confidence bands.  After some iterative work, below is the output with outliers/level shifts (I know I'm overfitting here) but it did a pretty good job in forecasting; there are also narrow confidence bands.    In looking at just this example the UCM seems to predict the hold-out sample more accurately than auto.arima.  Why is auto.arima not providing a reasonable forecast?  Are state space models/UCMs better for forecasting long range?  Are there any benefits of using one method over other? Why can this product of rectangular matrices not be the identity matrix? Recommended ways to upgrade AlwaysOn AG from 2014 to 2016 What is the recommended process of upgrading Availability Groups with one Sync Replica from SQL 2014 to 2016?  My understanding is that in-place upgrades are not really liked among database professionals. Is there a way to avoid in-place upgrades in Availability Groups? Is there a possibility to join a 2016 server into an existing 2014 availability group and to failover there, then "kill" one of the other instances and upgrade it? (e.g. by removing/re-installing SQL side-by-side on the same host)  Are there any other upgrade scenarios that we should consider?  The ideal solution would be that we always have 2 online replicas, and that we don't need to do any in-place upgrades. Which statistics to use? centos: using epel repository on a server machine Are there any downsides in enabling epel repository on a server machine or is it something every sysadmin does? How do I unlock all the other ships in the hangar? Check server activity with code I would like to see the activity on of the SQL server. So I can run a query when the server load is low. I know there is an activity monitor in SQL server but my company doesn't want me to give the rights to use this tool. Apparently you can kill other people queries and this is too dangerous.  Is there a way to check the status of the server with code? (Or view the activity without needing those rights so I can manually run them?)