Imagine I have a template class, where I've defined typdedef of function pointer to BaseClass function, that returns T and has no arguments:  template &lt;typename T, typename BaseClass&gt; class TConnectionPoint {     typedef   T (BaseClass::* PConnectionFunction)();     private:        PConnectionFunction _func;     public:        T Call(); }   This template has method Call():  template &lt;typename T, typename BaseClass&gt; T TConnectionPoint&lt;T,BaseClass&gt;::Call() {     return _func(); }   The problem appears when I try to execute Call() function - VS2013 send me this error, which is a little confusing me:     term does not evaluate to a function taking 0 arguments   What I'm doing wrong?
I am trying to pass a member function within a class to a function that takes a member function class pointer.  The problem I am having is that I am not sure how to properly do this within the class using the this pointer.  Does anyone have suggestions?  Here is a copy of the class that is passing the member function:  class testMenu : public MenuScreen{ public:  bool draw;  MenuButton&lt;testMenu&gt; x;  testMenu():MenuScreen("testMenu"){     x.SetButton(100,100,TEXT("buttonNormal.png"),TEXT("buttonHover.png"),TEXT("buttonPressed.png"),100,40,&amp;this-&gt;test2);      draw = false; }  void test2(){     draw = true; } };   The function x.SetButton(...) is contained in another class, where "object" is a template.  void SetButton(int xPos, int yPos, LPCWSTR normalFilePath, LPCWSTR hoverFilePath, LPCWSTR pressedFilePath, int Width, int Height, void (object::*ButtonFunc)()) {      BUTTON::SetButton(xPos, yPos, normalFilePath, hoverFilePath, pressedFilePath, Width, Height);      this-&gt;ButtonFunc = &amp;ButtonFunc; }   If anyone has any advice on how I can properly send this function so that I can use it later.
"How big of a problem" vs. "how big a problem" Quite a few phrases in English are constructed like so:     How [adjective] a [noun]...?   This is the question form of the construction, which is often answered with the negative:     Not that [adjective] a [noun].   or the positive:     Quite [adjective] a [noun].   However, from time to time I'll hear the word 'of' inserted before the 'a', e.g.:     Not that [adjective] of a [noun].   This usually sounds wrong to me, with the exception of the case where the adjective 'much' is used.  So, this sounds fine to my ear:     Not that much of a problem.   whereas this doesn't:     Not that loud of a noise.   Why is it that 'much' should be used with 'of', and other adjectives not?  Is it because 'much' is seen as measuring a quantity (of something), whereas other adjectives that may be used in this construction are seen as measuring the quality of a whole thing? Understanding p-value I know that there are lots of materials explaining p-value. However the concept is not easy to grasp firmly without further clarification.  Here is the definition of p-value from Wikipedia:     The p-value is the probability of obtaining a test statistic at least   as extreme as the one that was actually observed, assuming that the   null hypothesis is true. ()   My first question pertains to the expression "at least as extreme as the one that was actually observed." My understanding of the logic underlying the use of p-value is the following: If the p-value is small, it's unlikely that the observation occurred assuming the null hypothesis and we may need an alternative hypothesis to explain the observation. If the p-value is not so small, it is likely that the observation occurred only assuming the null hypothesis and the alternative hypothesis is not necessary to explain the observation. So if someone wants to insist on a hypothesis he/she has to show that the p-value of the null hypothesis is very small. With this view in mind, my understanding of the ambiguous expression is that p-value is $\min[P(X&lt;x),P(x&lt;X)]$, if the PDF of the statistic is unimodal, where $X$ is the test statistic and $x$ is its value obtained from the observation. Is this right? If it is right, is it still applicable to use the bimodal PDF of the statistic? If two peaks of the PDF are separated well and the observed value is somewhere in the low probability density region between the two peaks, which interval does the p-value give the probability of?  The second question is about another definition of p-value from Wolfram MathWorld:     The probability that a variate would assume a value greater than or   equal to the observed value strictly by chance.   ()   I understood that the phrase "strictly by chance" should be interpreted as "assuming a null hypothesis". Is that right?  The third question regards the use of "null hypothesis". Let's assume that someone wants to insist that a coin is fair. He expresses the hypothesis as that relative frequency of heads is 0.5. Then the null hypothesis is "relative frequency of heads is not 0.5." In this case, whereas calculating the p-value of the null hypothesis is difficult, the calculation is easy for the alternative hypothesis. Of course the problem can be resolved by interchanging the role of the two hypotheses. My question is that rejection or acceptance based directly on the p-value of the original alternative hypothesis (without introducing the null hypothesis) is whether it is OK or not. If it is not OK, what is usual workaround for such difficulties when calculating the p-value of a null hypothesis?     I posted a new  that is more clarified based on the discussion in this thread. A feature of C++ is the ability to create unnamed (anonymous) namespaces, like so:  namespace {     int cannotAccessOutsideThisFile() { ... } } // namespace   You would think that such a feature would be useless -- since you can't specify the name of the namespace, it's impossible to access anything within it from outside. But these unnamed namespaces are accessible within the file they're created in, as if you had an implicit using-clause to them.  My question is, why or when would this be preferable to using static functions? Or are they essentially two ways of doing the exact same thing? I'm assuming that the answer to the question in the title is a resounding yes. Since Baryonic matter and dark matter interact via gravitational forces.  If this is the case how is information not lost if, as is presumed, dark matter does not interact via the electromagnetic force? How to convert mediawiki syntax to latex? Why is transferring money online to someone else's bank account so difficult in the U.S.? How can I check which DNS server am I using (in Linux)? I am using network manager and a wired connection to my university's LAN. (I am trying to find out why my domain doesn't get resolved) Another (perhaps humorous) term for "The Gold Standard" Gold Standard as in:     an example against which others of the same type are compared   -    Any other humorous ways to refer to this?  Something like "the holy mother"... How to solve "Extra junk at end of file" when using apt? I'm trying to configure some proxies for a guest virtual machine and now I'm getting:  sudo apt-get update E: Syntax error /etc/apt/apt.conf.d/95proxy:4: Extra junk at end of file   The content of the file is:  cat /etc/apt/apt.conf.d/95proxy   Acquire::http::proxy  "http://10.0.0.60:3128/" Acquire::ftp::proxy "http://10.0.0.60:3128/" Acquire::https::proxy "http://10.0.0.60:3128/" The Boolean modifier is not working I installed Drush for the first time (so it may be a configuration error) and I'm trying to update to the latest core version of Drupal.  Drush is giving me this error - I'm on an OSX box.  dev5:clientnamedirectory my.name$ drush pm-update projects drupal-7.25 &lt;h1&gt;Additional uncaught exception thrown while handling exception.&lt;/h1&gt;  &lt;h2&gt;Original&lt;/h2&gt;&lt;p&gt;PDOException: SQLSTATE[HY000] [2002] No such file or directory in drupal_get_installed_schema_version() (line 155 of /Users/my.name/Sites/proface/includes/install.inc).&lt;/p&gt;  &lt;h2&gt;Additional&lt;/h2&gt;  &lt;p&gt;PDOException: SQLSTATE[HY000] [2002] No such file or directory in system_list() (line 165 of /Users/my.name/Sites/clientnamedirectory/includes/module.inc).&lt;/p&gt;&lt;hr /&gt;  Drush command terminated abnormally due to an unrecoverable error. Non-ECC memory with ZFS: a stupid idea? I have a new server and am planning to upgrade the paltry 2 GB of memory to the maximum of 16 GB. (Theoretically 8 GB is the limit, but empirically 16 GB has been shown to work.)   advise that ECC memory is not that important, but I'm not so sure I believe this.     I've installed  and am planning to add ZFS volumes as soon as my new hard drives arrive.   Would it be stupid to skimp and get non-ECC memory for a ZFS-based NAS?  If it's necessary, then I'll bite the bullet, but if it's just paranoia, then I'll probably skip it.  Is there any reason ZFS or FeeeNAS specifically would require ECC memory, or suffer especially when running on a system using non-ECC memory? What sequence of documents should I read to know "all of" TeX and then LaTeX? I got this problem from my teacher as a optional challenge. I am open about this being a given problem, however it is not homework. The problem is stated as follows. Assume we have an infinite tetration as follows $$x^{x^{x^{.^{.^.}}}} \, = \, a$$ With a given $a$ find $x$. The next part of the problem was to discuss the convergence radius of a. If a is too big or too small the tetration does not converge. Below is my humble stab at the problem.  My friend said you would have to treat the tetration as a infinite series, and therefore could not perform algebraic manipulations on it before it is know whether it converges or diverges. However my attempt is to first do some algebraic steps, then discuss the convergence radius. I) Initial discussion At the start it is obvious that the tetration converges when $a=1$ (just set $x=1$) Now after some computer hardwork it seems that the tetration fails to converge when a is roughly larger than 3. II) Algebraic manipulation $$ x^{x^{x^{.^{.^.}}}} \, = \, a$$ This is the same as $$ x^a \, = \, a$$ $$ \log_a(x^a) \, = \, \log_a(a)$$ $$ \log_a(x) \, = \, \frac{1}{a}$$ $$ x \, = \, a^{\frac{1}{a}}$$ Now, if we let $a=2$ then $x = \sqrt{2}$. After some more computational work, this seems to be correct, which makes me believe this formula is correct. III) Discsussion about convergence By looking at the derivative of $ \displaystyle \large a^{\frac{1}{a}} $ we see that the maxima occurs when $a=e$, which also seems to correspond to the inital computational work. Now I think, that the minima of $\displaystyle \large a^{1/a}$ is zero by looking at its graph, studying its derivative and the endpoints. So that my &quot;guess&quot; or work shows that it converges when $$ a \in [0 \, , \,  1/e] $$ VI) My questions Can my algebraic manipulations be justified? They seem rather sketchy taking the a`th logarithm and so on . (Although they seem to &quot;magically&quot; give out the right answer) By looking at Wikipedia it seems that the tetration converge when $$ a \in \left[ 1/e \, , \, e \right] $$ This is almost what I have, why is my lower bound wrong? How can  I find the correct lower bound? Changing Custom Post Type Name Order Gradle compiling slows down my computer The responsiveness is really bad on a newly installed Ubuntu 14.04 LTS.  Here's the specs of my laptop:  Quadcore Intel i7-4600U CPU @ 2.10GHz 12GB Ram 1TB Samsung EVO SSD   And when gradle is compiling, my entire system slows to a crawl, videos begin stuttering, browser scrolling lags... etc.  The same goes when a page refresh occurs in another window in Chrome, and while it refreshes, the HTML5 video in another tab begins stuttering.  How can I fix this?  Here are some logs:  $ vmstat -a 1 5 -   $ iostat -x 1 5 -   $ top -b - LIGO flawed by the identical expansion of laser wavelength and arms in presence of a gravitational wave? , Laser Interferometer Gravitational-Wave Observatory, is a large-scale physics experiment aiming to directly detect gravitational waves. The device measures the phase shift laser beams.  If I understand this well, the measurement assumes that a suitable gravitational wave reduces and prolongs one of the tubes and the extension will take effect in the phase-shifting laser beams.  But I think if there's a gravitational wave that passes through it, it will affect everything, even the laser beam. This means that when the wave lengthens or shortens the tube, it also lengthens or shortens the wavelength of the laser beam.  In my opinion, therefore, this device does not work. Or am I wrong? How to avoid returning a Null if there is no "else" condition in an If construct Term for being unable to see glaring errors after working for some time on a task? xgboost tayler expansion detail This is the objective function for Xgboost.  I have no idea where $g_{i}$ and $h_{i}$ came from  is some one explain how this two terms came form?  or direct me to the related tutorial page then I will search for it