you should get pets that constantly wanting to escape - you wouldn't be bored, sleepy or unmotivated, but you will be annoyed the heck out of you ... especially the smart ones
I remember Captain Jack Harkness encouraged the real Captain Jack Harkness to savor the moment before the next day (during which he would die.) Then the real Captain Jack Harkness tried to hold hands with Captain Jack Harkness, and they ended-up kissing passionately.
We've seen Captain Jack Hark...
"it crashes" isn't really much to go on, and we have no idea what theta, phi and gain are. Post a testcase when you want help with broken code. — Lightness Races in Orbit13 secs ago
T *t; //T is an implementation detail
t = new T; //want to avoid naming T to allow for flexibility
t = new decltype(*t); //error: cannot use 'new' to allocate a reference
t = new std::remove_reference<decltype(*t)>::type(); //clunky
This answers why *t is a T & and not a T.
I can put my last l...
@quantdev Your reading of the standard isn't applicable. What it's saying is that given something like void f(const int), the const is ignored, so it's equivalent to void f(int). A trailing const, as in: void f() const is not a top-level const. Rather, it's saying that f is a member function that can be called even when/if the object is const (i.e., via T const *const this).
Just a song before I go, a lesson to be learned. Please vote to close this crap. It really is well earned... http://stackoverflow.com/q/25311371/179910
I'm trying to use the boost signals and slots with C++ templates. Here is the example code:
#include <iostream>
#include <sstream>
#include <string>
#include <boost/signals2/signal.hpp>
template<class T>
class JBase
{
public:
JBase(T &d) : data(d)
{}
virtual ~JBase() {}
virtual...
I was just randomly reading Memory Alpha's "A Matter of Time" article, and found this: "The character of Berlingoff Rasmussen was originally written for Star Trek fan Robin Williams, who opted out in order to play Peter Pan in the movie Hook." :(
@Ell Because slopes are not reliably slippery. Slippery Slope arguments are a way to try to say X leads to Y without PROVING that X will actually lead to Y.
look at the bright side! At least it doesn't matter that the CA's are incompetent and untrustworthy, because our SSL libraries are broken and full of holes anyway
there's no single point of failure because every single point is already failing.
and even if we trusted the certificate, and the SSL libs were safe, people would still be storing plaintext passwords in their database and have truckloads of sql injection vulnerabilities on their sites.
No, because I didn't keep comprehensive records. But considering it was a huge percentage of what I ate, and I've since changed my diet only minorly and I've lost most of that weight, I'd consider it a safe bet.
Say you want to note down a number to another person, and want it to be unambiguous (perhaps the other person is an alien and has more than 10 fingers or something). So if you say
12345, base 42
That's not enough because they will ask
is 42 in base 42 or in base 10
What is the commonl...
@Xeo, I generally do it for 90 minutes. According to my heart monitor doohickey I usually burn around 1500 calories. But that's probably an overestimate.
I want to access tuple member and accumulate result next and next. but not work and it look as access out-of-bound(invalid use of incomplete type struct std::tuple_element<0u, std::tuple<> >)
#include <iostream>
#include <tuple>
template<typename...ARGS>
struct NextTest
{
std::tuple<ARGS...>...
I only found one instance of the phrase in the standard, and
that was in a non-normative note. Lacking any other definition,
one must assume that the expression is interpreted as it would
be normally in English; that the qualifier is at the highest
level of the type declaration. Of course, we g...