I have this piece of code below :  in component_storage class :      template &lt; typename T, typename... Args &gt;     T&amp; append( int index, Args&amp;&amp;... args )     {         grow();         T* result = (T*)m_data + m_size - 1;         construct_object&lt;T&gt;( result, std::forward&lt;Args&gt;( args )... );         if ( m_indices )             m_indices[ m_size - 1 ] = index;         return *result;     }   in component class :       template &lt; typename Component, typename ...Args &gt;     Component&amp; add_component( handle h, Args&amp;&amp;... args )     {         component_interface* ci = get_interface&lt;Component&gt;();         auto* cs = get_storage&lt;Component&gt;();         int i = ci-&gt;m_index-&gt;insert( h );         assert( i == int( cs-&gt;size() ) &amp;&amp; "Fail!" );         return cs-&gt;append&lt;Component&gt;( h.index, std::forward&lt;Args&gt;( args )... );     }   and I call add_component in main like this:       game_ecs e;     e.register_component&lt; position &gt;();     e.register_system&lt; position_system &gt;();      handle being = e.create();     e.add_component&lt; position &gt;( being, 3, 4 );   the problem is that I get those 2 errors :   error: expected primary-expression before ‘&gt;’ token    return cs-&gt;append&lt;Component&gt;( h.index, std::forward&lt;Args&gt;( args )... );  error: expected binary operator before ‘)’ token    return cs-&gt;append&lt;Component&gt;( h.index, std::forward&lt;Args&gt;( args )... );   I am Compiling under Linux with g++ 7.2 with C++17 flags enabled. Any suggestions on this errors? I cannot find any solution.
In templates, where and why do I have to put typename and template on dependent names? What exactly are dependent names anyway?    I have the following code:  template &lt;typename T, typename Tail&gt; // Tail will be a UnionNode too. struct UnionNode : public Tail {     // ...     template&lt;typename U&gt; struct inUnion {         // Q: where to add typename/template here?         typedef Tail::inUnion&lt;U&gt; dummy;      };     template&lt; &gt; struct inUnion&lt;T&gt; {     }; }; template &lt;typename T&gt; // For the last node Tn. struct UnionNode&lt;T, void&gt; {     // ...     template&lt;typename U&gt; struct inUnion {         char fail[ -2 + (sizeof(U)%2) ]; // Cannot be instantiated for any U     };     template&lt; &gt; struct inUnion&lt;T&gt; {     }; };   The problem I have is in the typedef Tail::inUnion&lt;U&gt; dummy line. I'm fairly certain that inUnion is a dependent name, and VC++ is quite right in choking on it. I also know that I should be able to add template somewhere to tell the compiler that inUnion is a template-id. But where exactly? And should it then assume that inUnion is a class template, i.e. inUnion&lt;U&gt; names a type and not a function?
What is the exact difference between fluid and responsive design? What is the exact difference between fluid and responsive design?  I am bit confused about fluid and responsive design. Fluid is the one where we give width in percentages so that design will look good on browsers even if shrink or expand the browser. But what's different about responsive? I was wondering if it was possible to use any of the API's provided by SF to build an external (C#, Java) application to manage building changesets.   Building changesets is very tedious when trying to include 100's of items and I was hoping to streamline the process for our team by building an application I can load an excel file to with the required components and have it build the outbound changeset. Can I still command/control concentration spells while in the Border Ethereal? If I have cast something like Animated Objects or Bigby's Hand and then follow up the next round with casting Etherealness, can I still command/control those spells? How to increase the signal power of a wi-fi card? I use an atheros card that requires ath9k driver. Are there any tools that can be used to increase the signal power of the wi-fi card? Does $x^2 - y^2 = 12345678$ (x,y are integers) have any solutions? This question appeared in KVPY online exam held on Nov 5. This equation is the equation of a hyperbola so any solution must be of the form $a\sec(k),a\tan(k)$. So no solutions. I have a ton of MP3s, but their ID tags are not filled in.  Going in manually to populate them is simply too much work.    I was wondering if there is a way to populate them automatically.  Perhaps by feeding the MP3s to Shazam or Midori or something like.  I am not above writing some code to make it happen, if someone can suggest a way. When to use LinkedList over ArrayList in Java? The Data Interoperability Tools .tbx appears in my system toolboxes, however when I double click quick export or import, a red X appears.  I have gone into the administrator settings and the tool doesn't appear to be installed. How do I install it?  I am using ArcGIS 10.2 for desktop trial.  After I attempt to evaluate extensions, I receive a message which states all requested features have already been authorized on this machine. Do you have to want to hurt someone for the cruciatus curse to work? OK so the scene where Harry sees Voldemort making Draco tutur Rowel brings a few questions to my mind.      he felt the rage that did not belong to him posses his soul, saw a long room, only light by fire light, and the grate blond Death Eater on the floor,screaming and writhing, and a slighter figure standing over him, wand outstretched, while Harry spoke in a high, cold, merciless voice.   "More, Rowel, or shall we end it and feed you to Nagini? Lord Voldemort is not sure he will forgive you this time...You called me back for this, to tell me Harry Potter has escaped again? Draco, give Rowel another taste of our displeasure... do it, or feel, my wrath yourself!"   A log fell in the fire: flames reared, their light darting across a terrified, pointed white face-   I remember in the Order of the Phoenix Harry tries to do the cruciatus curse on Bellatrix, it doesn't work. She say this is because Harry doesn't mean it, he doesn't want to hurt he enough. If she's right about that (I'm sure she is) I don't see how Draco is managing to make to make Rowel writhe and scream, because it is clear he doesn't want to be doing it.   Also Harry was actually angry at Bellatrix and if his anger at her killing his godfather won't work... well you get my drift.   I know Draco is probably better at magic, but I feel Bellatrix is right, you really have to want them to hurt for it to work.  Next thing, Voldemort's having Draco do it why? Is he doing to upset Lucius, because that and lot of effort to go to, seeing as Voldemort is angry and he'd probably do a better job himself. Or is he trying to train himself a new soldier, I mean the other ones are getting old. Story with VR worlds for the wealthy Best Fake Proofs? (A M.SE April Fools Day collection) MySQL Error 1153 - Got a packet bigger than 'max_allowed_packet' bytes Which is more idiomatic in a bash script: `|| true` or `|| :`? I don't do terribly much shell scripting, so I was a little surprised when I was reading  and I saw the syntax they used in this documentation:     A non-zero return from the command in any submodule causes the processing to terminate. This can be overridden by adding || : to the end of the command.   I had to look up that || : was a shorthand for forcing a command to exit successfully.  Anytime I've had to make a command exit successfully, I used || true.  Is || : considered to be more idiomatic? Possible Duplicate:                I know that the sum of the squares of the first n natural numbers is $\frac{n(n + 1)(2n + 1)}{6}$. I know how to prove it inductively. But how, presuming I have no idea about this formula, should I determine it? The sequence $a(n)=1^2+2^2+...+n^2$ is neither geometric nor arithmetic. The difference between the consecutive terms is 4, 9, 16 and so on, which doesn't help. Could someone please help me and explain how should I get to the well known formula assuming I didn't know it and was on some desert island? Is the oil thrown on a creature consumed when it's dealt fire damage and lit? I had the idea of throwing oil flasks on enemies at level 1, then hitting them with a torch to deal a bunch of bonus fire damage.  PHB 152:     If the target takes any fire damage before the oil dries (after 1 minute), the target takes an additional 5 fire damage from the burning oil.   PHB 152:     If you make a melee attack with a burning torch and hit, it deals 1 fire damage.   A flat 6 fire damage is pretty potent at level 1, but does the oil remain or does it burn out in a flash when hit (since it has no damage over time) when hit?  If not there is potential for a dual torch wielding PC to throw down 12 fire damage per round, or for multiple PCs to deal 6 damage per torch per PC per round. I'd like to output hello world over 20 characters.  printf "%-20s :\n\n" 'hello world!!'  # Actual output hello world!!        :  # Wanted output hello world!!========:   However, I don't want to complete with spaces but with "=" instead. How do I do that? How to scale a tikzpicture including texts? It seems that the scale option scales only the length of lines, but not the size of texts. For instance, 1 and true and not scaled in the following code.  \begin{tikzpicture}[thick, scale=0.6] \draw [dashed] (1,12) -- (11,12); \node[above] at (4,11) {1}; \node[above] at (8,11) {true}; \end{tikzpicture}   Could anyone tell me how to scale everything together within a tikzpicture? Thank you very much!  PS: It is a picture in a presentation with Beamer. I've seen papers (e.g., in Science) where the first two authors are listed in non-alphabetical order, and yet there are asterisks behind their names to say that they contributed equally.   It seems strange to me, because if the two authors are in alphabetical order, then it could be that the first author contributed more or the two contributed equally, and this can be made clear with asterisks in the paper if it's the latter case. When they're in non-alphabetical order, however, if someone only sees the author list without seeing the paper, he/she will likely assume that the first author contributed most.  So my question is: Are there particular reasons why people do that? (This  is related, but I don't think the answers there get to my question.) Rotate only one screen If I have only the internal monitor (LVDS1) with an xrandr -o left command. Now I want to attach a second monitor, say to HDMI1. Then I'd like to rotate only the internal monitor, but not the external one. I tried the following (with no external attached though, since I am mobile currently), but that does not do anything:  xrandr --output LVDS1 -o left   How can I rotate only one monitor?  I do need some command line, since I want to put this into a script. having bracket in front of an item