virtual dtors

This commit is contained in:
wang-bin
2014-11-22 22:02:52 +08:00
parent 764962f07f
commit e2452ee13d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -49,7 +49,7 @@
class cuda_api {
public:
cuda_api();
~cuda_api();
virtual ~cuda_api();
bool isLoaded() const;
#if !NV_CONFIG(DLLAPI_CUDA) && !defined(CUDA_LINK)
////////////////////////////////////////////////////
+2 -2
View File
@@ -33,8 +33,8 @@ class api
{
public:
api();
~api();
bool loaded() const;
virtual ~api();
virtual bool loaded() const; // user may inherits multiple api classes: final::loaded() { return base1::loaded() && base2::loaded();}
#ifndef CAPI_LINK_ASS
// mkapi code generation BEGIN
int ass_library_version();