I have a template class which contains a vector of pointers of a type given as a template parameter. I want to be able to use range-based iteration to iterate over a limited portion of the vector. My class contains the following functions:  template&lt; typename ObjectType &gt; class ObjectList {      ...  public:      //! Begin iteration over a list of objects     std::vector&lt;ObjectType*&gt;::iterator begin();      //! Iterator to one past the end of the list of objects     std::vector&lt;ObjectType*&gt;::iterator end();  private:      std::vector&lt;ObjectType*&gt; object_ptrs; };   This fails to compile with the description Error C2061 syntax error: identifier 'iterator'. I can't think of any reason why std::vector&lt;ObjectType&gt;::iterator should ever not be found, unless ObjectType itself cannot be found, but the rest of the class instantiates successfully if I remove the lines which reference iterator.  Anyone have an idea what is going on? I'm sure it's possible I'm missing something obvious. Thanks in advance!
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?
I'm looking for a source/spec that can tell me what CSS properties can applied to which HTML elements.  For instance, the css property; "overflow".  I know I can apply this to div, p, textarea but what other elements can I apply this too?  Is there a spec somewhere I can reference? Why do shields in Star Trek "wear out"? Integer solutions to the equation $a^3+b^3+c^3=30$ Recently I bought a new laptop that came with Windows 10 installed but not activated. I use both Windows 10 and Ubuntu 18.04, so I tried making a dual boot with a USB flash drive. It was recognized by the BIOS, I tried Try Ubuntu without installing and Install Ubuntu. With both options the PC freezes, and I need to press the power button. It's shown very fast some errors that are listed below:  [ 0.064522] ACPI Error: Method parse/execution failed \_SB.PCID.RPOB.PXSX, AE_NOT_FOUND (20170831/parse-550)  [ 0.066316] ACPI Error: [_SB.PCID.RPOB.PXSX], Namespace lookup failure, AE_NOT_FOUND (20170831/download2-191)  [ 0.066325] ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20170831/psobject-252)  [ 0.246232] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246248] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246260] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246272] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246285] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246297] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246310] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)  [ 0.246322] ACPI Exception: AE_NOT_FOUND. Evaluating _PRS (20170831/pci_link-176)   I'm using NVIDIA GTX 1050 Ti graphics card and Intel i7-8750H processor.  I talked to the customer support and they just said that my laptop might not be compatible with Ubuntu. I also tried Ubuntu 16.04, but there were no changes.  EDIT: Thanks a lot for all the answers, but unfortunatelly I returned the PC to the store, neither the technical support found a solution for the problem, they just said: "Our PCs are just able to work with Windows, anyother OS might work but without our warranty". Why does Leia's accent change during A New Hope? Why do snap-packages exist - is there a real need? Assumptions  Honestly, I do not know much about  snap-packages - but this is irrelevant for this question - see below. I assume the system is significantly different from the existing one.  Does the change make sense?  Is there an actual need, strong enough? That is - is there a new use case, that is important enough to develop a new format - and the associated infrastructure?  Was it not feasible to change the current method to cover the new use cases too?  Or am I missing the point?  It is possible that what I see is mostly marketing - new names and presentation for minimal technical change, to get a chance that any body assumes it as "new and better" and it may be actually used. Also, it may be that the new packages are so closely based on the existing format that it is mostly a change in presentation to the user. That could be a good solution, of course. In this case, this question would have not much relevance.  Then, I would hope that is still useful enough to answer to side aspects.  Just let me know if the question is not helpful or confusing to new users, I'm happy to delete it.  So, why do they exist?    Background  My first reaction was "That makes no sense!"  This is similar to a situation where, on the physics site, someone asked, unhappy, why nobody discusses his brilliant new ideas in answers. It looked strongly like crackpot ideas; So far from actual physical knowledge that it was hard to find a point to even start. I wrote an answer that did not touch his ideas with a single word, but explained why one would just not discuss assuming crackpot ideas - not the first case of that. The answer was actually hitting the point, I think.    If my assumptions were right, this case is similar.    But then, maybe not - let's see. How do I complete "Find the Bitizen"? In tiny Death Star, Palpatine has given me the mission "Find the Bitizen" with the text "Working for tips is acceptable. Find 1 Bitizen(s)."  I assumed I had to wait for one of the events where you have to find a "rebel scum" and tap on it to get rid of. One of those events finally popped up but it did not complete the mission.   How do I complete this mission? Install Biber in MiKTeX on a 64-bit version of Windows Update: As of summer 2015 Biber is also included in the 64-bit repositories for MikTeX. There is no need to install Biber manually any more, it can simply be installed via the Package Manager just like other packages.   The question  describes how to use Biber with MiKTeX. But on the 64-bit version of MiKTeX Biber isn't installed.  How it is possible to install Biber on a 64-bit version of Windows?  Can I use this ? I am buing assamble self PC for playing games.  I am wondering, all the drivers, which are most likely for Windows, can i just use them on Ubuntu?  So if i understand you right, it will automaticaly detect the drivers, no need for installs ? or it find custom drivers for ubuntu.  This is the setup, will there be any problem with it? This is perhaps a simple question with a simple answer, but I'm stumped as a tikz novice. What would be the best method to add an image (logo) file to the upper left-hand corner of my document?    MWE:  \documentclass[12pt]{article}  \usepackage{lipsum} \usepackage{showframe} %\usepackage{tikz} %\usepackage{graphicx}  \begin{document}  \section*{Lorem Ipsum}  \lipsum[1]  \end{document}   I wish to avoid using fancyhdr to achieve this result. The Crumple-Horned Snorkack is one of various weird and wacky things which Luna Lovegood believes in and most people (especially the ever-rational Hermione) don't. Now we know that Luna is a bit ... odd, and believes in a lot of nonsense; but on the other hand, Hermione's pooh-poohing isn't always to be believed either - Divination, for instance, is a real thing in the Potterverse.  Is it ever established for sure, in canon, in-universe, whether or not Crumple-Horned Snorkacks exist? How do I theme a webform? In C the following horror is valid:  myFunc() {   return 42;  // return type defaults to int. }   But, what about in C++? I can't find a reference to it either way...  My compiler (Codegear C++Builder 2007) currently accepts it without warning, but I've had comments that this is an error in C++. Edge won't connect to internet, Skype for business won't screen-share, Windows Store won't update apps after Windows 10 version 1809 installed I ran into a problem after upgrading Windows 10 October 2018 to version 1809. After the Windows update I noticed the following problems with Microsoft applications:   Microsoft Edge could no longer connect to the internet even though Chrome, Firefox and IE 11 still could. Skype for Business (formerly Lync) no longer allowed me to share my screen or view another person's shared screen. The Windows Store could not connect to the internet to update apps. The Microsoft Feedback portal could no longer connect to the internet.   How can I resolve these network issues that seemed to cooincide with an upgrade to Win10 ver 1809? Is Ubuntu compatible with my hardware? How can I  compare (without calculator or similar device) the values of $\pi^e$ and $e^\pi$ ? Direct Link to a Comment Search for a string and print everything before and after within a range I have this file:  sometext1{ string1 }  sometext2{ string2 string3 }  sometext3{ string4 string5 string6 }   I want to search this file for a specific string and print everything before this string up to the opening { and everything after this string up to the closing }. I tried to achieve this with sed but if I try to print everything in the range /{/,/string2/ for example sed prints this:  sometext1{ string1 }  sometext2{ string2 sometext3{ string4 string5 string6 }   If I search for the string "string2" I need the output to be:   sometext2{ string2 string3 }   Thanks. Get dateformat based on Locale If I am shooting the 8-ball for a win, and my opponent has a ball near the pocket I'm aiming for, can I call something like "8-ball off the 2 ball into the corner pocket"?  I thought this was allowed, but a friend says this is an automatic loss and that the 8-ball must never touch another ball before going into the pocket.  Various pool rules aren't clear for me on this scenario.