Has C++/WinRT or WinRT/ABI a CRTP “feature” with _declspec(novtable)?How to enumerate folder contents in Oct 2018Build Qt project with VS C++ Compiler 15.0 with C++17 to use WinRT APIsHow to call a method on the GUI thread in C++/winrtsynchronizing SDK with Windows 10 update and using WinRT with Standard C++C++-WinRT's com_ptr reset?handle drop event of drag and drop from ListView to ListView with UWP and C++/WinRT appActivation from C++/WinRT DLLWhat's the EntryPoint in AppxManifest.xml for C++/WinRT console UWP apps?Using C++/WinRT dll in WPF with elevated rights applicationHow do you add a C++/WinRT Button Click handler?
What F1 in name of seeds/varieties means?
Draw a checker pattern with a black X in the center
How feasible is the Delta-Glider?
How do Russian speakers idiomatically express the idea of "Ce n’est pas donné à tout le monde de ..." in French?
What is the difference between nullifying your vote and not going to vote at all?
Is floating in space similar to falling under gravity?
Is there an explanation for Austria's Freedom Party virtually retaining its vote share despite recent scandal?
Could I be denied entry into Ireland due to medical and police situations during a previous UK visit?
How were these pictures of spacecraft wind tunnel testing taken?
Infinitely many hats
How do I subvert the tropes of a train heist?
Do firearms count as ranged weapons?
Uses of T extends U?
How did early x86 BIOS programmers manage to program full blown TUIs given very few bytes of ROM/EPROM?
shutdown at specific date
File globbing pattern, !(*example), behaves differently in bash script than it does in bash shell
Why do Russians call their women expensive ("дорогая")?
Should I use n only, b only, bg, bgn, or gn?
What's the connection between "kicking a pigeon" and "how a bill becomes a law"?
Comment dit-on « I’ll tell you what » ?
What are the problems in teaching guitar via Skype?
How can I find where certain bash function is defined?
Is it possible to change original filename of an exe?
What is a subpixel in Super Mario Bros, and how does it relate to wall clipping?
Has C++/WinRT or WinRT/ABI a CRTP “feature” with _declspec(novtable)?
How to enumerate folder contents in Oct 2018Build Qt project with VS C++ Compiler 15.0 with C++17 to use WinRT APIsHow to call a method on the GUI thread in C++/winrtsynchronizing SDK with Windows 10 update and using WinRT with Standard C++C++-WinRT's com_ptr reset?handle drop event of drag and drop from ListView to ListView with UWP and C++/WinRT appActivation from C++/WinRT DLLWhat's the EntryPoint in AppxManifest.xml for C++/WinRT console UWP apps?Using C++/WinRT dll in WPF with elevated rights applicationHow do you add a C++/WinRT Button Click handler?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Coming from ATL(Active Template Library) there is a coclass an abstract base class and hence it is secure to tag the coclass with ATL_NO_VTABLE ( _declspec(novtable)). So you can use only the Microsoft C++ compiler to use the ATL classes. Has C++/winRT or WinRT/ABI such a CRTP-"feature" also for other C++ compilers ? And if, how does it work ?
c++-winrt
add a comment |
Coming from ATL(Active Template Library) there is a coclass an abstract base class and hence it is secure to tag the coclass with ATL_NO_VTABLE ( _declspec(novtable)). So you can use only the Microsoft C++ compiler to use the ATL classes. Has C++/winRT or WinRT/ABI such a CRTP-"feature" also for other C++ compilers ? And if, how does it work ?
c++-winrt
add a comment |
Coming from ATL(Active Template Library) there is a coclass an abstract base class and hence it is secure to tag the coclass with ATL_NO_VTABLE ( _declspec(novtable)). So you can use only the Microsoft C++ compiler to use the ATL classes. Has C++/winRT or WinRT/ABI such a CRTP-"feature" also for other C++ compilers ? And if, how does it work ?
c++-winrt
Coming from ATL(Active Template Library) there is a coclass an abstract base class and hence it is secure to tag the coclass with ATL_NO_VTABLE ( _declspec(novtable)). So you can use only the Microsoft C++ compiler to use the ATL classes. Has C++/winRT or WinRT/ABI such a CRTP-"feature" also for other C++ compilers ? And if, how does it work ?
c++-winrt
c++-winrt
asked Mar 24 at 8:43
axel47608axel47608
1
1
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
__declspec(novtable)
is an implementation detail, unrelated to the CRTP. It is handled in C++/WinRT like pretty much any other platform specific implementation in virtually any other C or C++ library: By use of preprocessor macros. You'll find the following in <base.h>:
#if defined(_MSC_VER)
...
#define WINRT_NOVTABLE __declspec(novtable)
...
#else
...
#define WINRT_NOVTABLE
...
#endif
The respective base types in namespace winrt::impl
are appropriately tagged WINRT_NOVTABLE
.
Please just use __declspec(novtable) directly if you need it (or define your own macro). The C++/WinRT macros are not meant for public use.
– Kenny Kerr
Mar 25 at 15:00
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55322025%2fhas-c-winrt-or-winrt-abi-a-crtp-feature-with-declspecnovtable%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
__declspec(novtable)
is an implementation detail, unrelated to the CRTP. It is handled in C++/WinRT like pretty much any other platform specific implementation in virtually any other C or C++ library: By use of preprocessor macros. You'll find the following in <base.h>:
#if defined(_MSC_VER)
...
#define WINRT_NOVTABLE __declspec(novtable)
...
#else
...
#define WINRT_NOVTABLE
...
#endif
The respective base types in namespace winrt::impl
are appropriately tagged WINRT_NOVTABLE
.
Please just use __declspec(novtable) directly if you need it (or define your own macro). The C++/WinRT macros are not meant for public use.
– Kenny Kerr
Mar 25 at 15:00
add a comment |
__declspec(novtable)
is an implementation detail, unrelated to the CRTP. It is handled in C++/WinRT like pretty much any other platform specific implementation in virtually any other C or C++ library: By use of preprocessor macros. You'll find the following in <base.h>:
#if defined(_MSC_VER)
...
#define WINRT_NOVTABLE __declspec(novtable)
...
#else
...
#define WINRT_NOVTABLE
...
#endif
The respective base types in namespace winrt::impl
are appropriately tagged WINRT_NOVTABLE
.
Please just use __declspec(novtable) directly if you need it (or define your own macro). The C++/WinRT macros are not meant for public use.
– Kenny Kerr
Mar 25 at 15:00
add a comment |
__declspec(novtable)
is an implementation detail, unrelated to the CRTP. It is handled in C++/WinRT like pretty much any other platform specific implementation in virtually any other C or C++ library: By use of preprocessor macros. You'll find the following in <base.h>:
#if defined(_MSC_VER)
...
#define WINRT_NOVTABLE __declspec(novtable)
...
#else
...
#define WINRT_NOVTABLE
...
#endif
The respective base types in namespace winrt::impl
are appropriately tagged WINRT_NOVTABLE
.
__declspec(novtable)
is an implementation detail, unrelated to the CRTP. It is handled in C++/WinRT like pretty much any other platform specific implementation in virtually any other C or C++ library: By use of preprocessor macros. You'll find the following in <base.h>:
#if defined(_MSC_VER)
...
#define WINRT_NOVTABLE __declspec(novtable)
...
#else
...
#define WINRT_NOVTABLE
...
#endif
The respective base types in namespace winrt::impl
are appropriately tagged WINRT_NOVTABLE
.
answered Mar 24 at 13:51
IInspectableIInspectable
27k645104
27k645104
Please just use __declspec(novtable) directly if you need it (or define your own macro). The C++/WinRT macros are not meant for public use.
– Kenny Kerr
Mar 25 at 15:00
add a comment |
Please just use __declspec(novtable) directly if you need it (or define your own macro). The C++/WinRT macros are not meant for public use.
– Kenny Kerr
Mar 25 at 15:00
Please just use __declspec(novtable) directly if you need it (or define your own macro). The C++/WinRT macros are not meant for public use.
– Kenny Kerr
Mar 25 at 15:00
Please just use __declspec(novtable) directly if you need it (or define your own macro). The C++/WinRT macros are not meant for public use.
– Kenny Kerr
Mar 25 at 15:00
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55322025%2fhas-c-winrt-or-winrt-abi-a-crtp-feature-with-declspecnovtable%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown