This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* Written (W) 2009 Soeren Sonnenburg | |
* Copyright (C) 2009 Fraunhofer Institute FIRST and Max-Planck-Society | |
*/ | |
#include "features/Features.h" | |
#include "features/AttributeFeatures.h" | |
using namespace shogun; | |
CAttributeFeatures::CAttributeFeatures() | |
: CFeatures(0) | |
{ | |
} | |
CAttributeFeatures::~CAttributeFeatures() | |
{ | |
int32_t n=features.get_num_elements(); | |
for (int32_t i=0; i<n; i++) | |
{ if (features[i].attr_obj) | |
{ if (((features[i].attr_obj)->unref())==0) | |
(features[i].attr_obj)=NULL; | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cc1plus: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for C++ [enabled by default] | |
features/AttributeFeatures.cpp: In destructor ‘virtual shogun::CAttributeFeatures::~CAttributeFeatures()’: | |
features/AttributeFeatures.cpp:27:57: error: using temporary as lvalue [-fpermissive] | |
make[1]: *** [features/AttributeFeatures.cpp.o] Error 1 | |
make[1]: Leaving directory `/home/serialhex/src/shogun/shogun/src/libshogun' | |
make: *** [all] Error 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment