Is the sealed
command going to be in c++ 0x or is it only MS who use it?
相关问题
- thread_local variables initialization
- Visual Studio 2010 randomly says the command line
- efficiently calling unmanaged method taking unmana
- Google Test - generate values for template class i
- std::vector of objects / pointers / smart pointers
相关文章
- std::function copying parameters?
- Is a compiler forced to reject invalid constexpr?
- Custom pointer types and container/allocator typed
- How to fix a purported lack of an “explicit instan
- Ok to use std::getline() with a moved-from std::st
- How to specify gcc flags (CXXFLAGS) particularly f
- Templates, Function Pointers and C++0x
- Is it safe to use negative integers with size_t?
C++0x has a special identifier
final
which means the same assealed
for classes in C++/CLI. It prevents a class from being derived from.Read about sealed in Wikipedia
So the answer is basically: it already is but under a different name and has a different syntax.
sealed
is a really .net term and so is specific to MS C++/CLI.Sealed is used to declare a .net class that cannot be derived from. It's available in C++ but on for .net types in MC++.