It's commom for a template classe to derive from one of its parameters. For instance,
ctemplate <typename Base>
struct Foo : public Base {
Foo() { Base::f(); }
};
There is an issue when this templ…
Created on 2/8/2013 (updated 15 weeks ago) | 0 validations | 2 workarounds | 2 comments | feedback id: 778865
|
|
|
Closed
as Deferred
|
|
Namespace mock (see the code presented in "Steps to reproduce section") contains mock classes of std::vector and std::array.
The code compiles fine with VS 2010 and GCC 4.7.2. However, when mock::vec…
Created on 11/26/2012 (updated 16 weeks ago) | 0 validations | 1 workaround | 4 comments | feedback id: 772215
|
|
|
Closed
as Deferred
|
|
The issue seems to happen under very specific circunstances mixing rvalue and lvalue references, return by value (RVO is, probably, involved), classes with reference data members and a constructor tha…
Created on 10/30/2012 (updated 28 weeks ago) | 0 validations | 0 workarounds | 3 comments | feedback id: 769201
|
|
|
Closed
as Not Reproducible
|
|
The C++ standards (both C++03 and C++11) in 12.2/5 say that:
"A temporary bound to a reference member in a constructor's ctor-initializer (12.6.2) persists until the constructor exits."
However, in …
Created on 9/8/2012 (updated 7 weeks ago) | 1 validation | 0 workarounds | 5 comments | feedback id: 761742
|
|
|
Closed
as Fixed
|
|
The errors C2950 and C3416 are, basically, the same:
error C2950: cannot explicitly instantiate an explicit specialization
error C3416: an explicit specialization may not be explicitly instantiated
…
Created on 7/16/2012 (updated 22 weeks ago) | 0 validations | 0 workarounds | 3 comments | feedback id: 753981
|
|
In a complex expression involving templates, decltype and SFINAE, the compiler doesn't see a member Foo::operator > and, instead, tries to implicit convert Foo to a built-in type for for which > is we…
Created on 7/13/2012 (updated 16 weeks ago) | 0 validations | 0 workarounds | 3 comments | feedback id: 753678
|
|
|
Closed
as Deferred
|
|
When std::add_rvalue_reference is instantiated as the returning type of std::declval and they are inside another template class, std::add_rvalue_reference fails to see the outer template class parame…
Created on 7/13/2012 (updated 13 weeks ago) | 0 validations | 1 workaround | 5 comments | feedback id: 753675
|
|
|
Closed
as Deferred
|
|
I reckon that this is a corner case bug but it doesn't cost much to report.
In the following code, f2 is a template function parametrized on the size of an array. It needs access to a private method…
Created on 1/9/2012 (updated 15 weeks ago) | 0 validations | 0 workarounds | 3 comments | feedback id: 717749
|
|