According to 12.9/4, “Inheriting constructors”, when saying using X::X
,
A constructor so declared has the same access as the corresponding constructor in X.
So the inherited constructor is also protected
.
More Related Contents:
- Visual Studio support for new C / C++ standards?
- What is “Expression SFINAE”?
- Can’t pass temporary object as reference
- C++11 features in Visual Studio 2012
- Visual Studio 2012 __cplusplus and C++ 11
- How do compilers treat variable length arrays
- std::to_string – more than instance of overloaded function matches the argument list
- Initializer list not working with vector in Visual Studio 2012? [duplicate]
- Variadic Template in VS 2012 (Visual C++ November 2012 CTP)
- Double delete in initializer_list vs 2013
- How to enforce the ‘override’ keyword?
- Expand macro inside string literal
- std::thread::join() hangs if called after main() exits when using VS2012 RC
- how to specify vc11 lambda calling convention
- Visual Studio 2008 with c++11
- Explicit Return Type of Lambda
- Create N-element constexpr array in C++11
- What is the point of noreturn?
- Error: variable “cannot be implicitly captured because no default capture mode has been specified”
- copy elision: move constructor not called when using ternary expression in return statement?
- Why can’t I create a vector of lambdas (of the same type) in C++11?
- Why there is no placement delete expression in C++?
- When do extra parentheses have an effect, other than on operator precedence?
- Why does this program crash: passing of std::string between DLLs
- C++11 rvalue reference calling copy constructor too
- shared_ptr and weak_ptr differences
- How to determine programmatically if an expression is rvalue or lvalue in C++?
- Calling delete on NULL pointers – C++03 vs C++11
- narrowing conversion from unsigned to double
- Why does this simple std::thread example not work?