Please consider the attached example. It defines class derived_t which is derived from template base_t. Base class has a static array, static init function and static boolean. A boolean is initialized…
Created on 12/23/2012 (updated 16 weeks ago) | 0 validations | 0 workarounds | 4 comments | feedback id: 775065
|
|
It appears that compiler fails to remove empty base classes if a class derives from two empty bases in _specific_ order!
Consider the attached source code which combines empty and non-empty base clas…
Created on 11/20/2012 (updated 12 weeks ago) | 0 validations | 1 workaround | 2 comments | feedback id: 771716
|
|
|
Closed
as Deferred
|
|
After trying to replace existing make_unique (with a couple of manual overloads) with a variadic templates version, at least the following two bugs with namespaces were discovered:
Compiler is unable…
Created on 11/3/2012 (updated 19 weeks ago) | 4 validations | 0 workarounds | 12 comments | feedback id: 769988
|
|
|
Closed
as Duplicate
|
|
Run the following code:
#include "stdafx.h"
#define _SCL_SECURE_NO_WARNINGS 1
#include <tchar.h>
#include <locale>
#include <time.h>
#include <chrono>
#include <sstream>
#include <cassert>
templat…
Created on 10/4/2012 (updated 17 weeks ago) | 0 validations | 0 workarounds | 4 comments | feedback id: 766065
|
|
|
Closed
as Fixed
|
|
There is some new code (for example, in recent versions of boost) that uses the value of this macro to test if some new features of STL are available.
Although MSDN seems to mention only existence o…
Created on 9/17/2012 (updated 11 weeks ago) | 3 validations | 0 workarounds | 5 comments | feedback id: 763051
|
|
|
Closed
as Deferred
|
|
VC2012 RC fails to compile the following code:
#include <functional>
class A;
class B
{
std::reference_wrapper<const A> rA; // generates error C2139: 'A' : an undefined class is not allowed as an …
Created on 6/22/2012 (updated 23 weeks ago) | 0 validations | 0 workarounds | 2 comments | feedback id: 750448
|
|
|
Closed
as By Design
|
|
The following code snippet (compiled with latest boost 1.49.0) generates internal compiler error:
#define BOOST_RESULT_OF_USE_DECLTYPE
#include <vector>
#include <boost/range/adaptor/filtered.hpp>
…
Created on 6/1/2012 (updated 38 weeks ago) | 0 validations | 0 workarounds | 4 comments | feedback id: 745849
|
|
|
Closed
as Duplicate
|
|
Just installed the released VS 2012 RC. The following code does not compile anymore:
struct default_policy
{
template<class T>
struct apply
{
typedef T type;
};
};
template<class Policy=defaul…
Created on 6/1/2012 (updated 36 weeks ago) | 2 validations | 1 workaround | 5 comments | feedback id: 745629
|
|
|
Closed
as By Design
|
|
The following code, which compiled and worked just fine in VC2010 fails to compile on VC11 Beta:
#include <string>
class Test
{
public:
operator std::wstring() const
{
return std::wstring();
}
…
Created on 4/5/2012 (updated 28 weeks ago) | 0 validations | 0 workarounds | 3 comments | feedback id: 735697
|
|
|
Closed
as Deferred
|
|
compared to previous editions, PGO is too conservative.
If in VC2008 and VC2010 it was possible to optimize common paths using PGO even if functions are not looping a lot, VC11's PGO is very conserv…
Created on 4/5/2012 (updated 24 weeks ago) | 0 validations | 0 workarounds | 3 comments | feedback id: 735695
|
|
|
Closed
as By Design
|
|