Undefined reference template specialization




















Milestone r Copy link. DanAlbert added this to the r18 milestone Mar 15, DanAlbert added the clang label Mar 15, DanAlbert assigned stephenhines Mar 15, DanAlbert removed this from the r18 milestone Mar 16, DanAlbert added this to the r17 milestone Mar 16, Looks like we got the commit that fixed this in r DanAlbert closed this Mar 16, I just tested with master I possibly screwed up my test case?

Skip to content. Star New issue. Jump to bottom. Compile error in ubunutu Copy link. Error Message Function. I'd suggest deleting your 'build' directory, reconfiguring, and recompiling. Which branch are you using? It should work with petsc 3. Solved questions live forever in our knowledge base where they go on to help others facing the same issues for years to come. Are you sure you have something valuable to add that has not already been mentioned?

Consider starting a new topic instead. Otherwise, please be thoughtful, detailed and courteous, and adhere to our posting rules. Edit Preview. H1 H2. Post Reply. Broken Link. Why does it not use the specialization in this instance? And in order to pattern match against it, we need to invert this arbitrary compile time function. The standard says "compilers don't have to do that", which is one of the few sane things you can do here. It definitely says this for types; for templates, well, the standard's wording for template template parameters is often missing details, so I wouldn't be surprised if the wording was missing.

But if it doesn't, it would be a bug in the standard. You cannot inspect the scope that a variable, type or template is defined in. So you cannot pattern match that either. If you want do do what you want, the template C has to itself have a property you can inspect and test against. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Undefined reference to specialized template member Ask Question.



0コメント

  • 1000 / 1000