Skip to content

Instantly share code, notes, and snippets.

@serialhex
Created May 18, 2011 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save serialhex/979494 to your computer and use it in GitHub Desktop.
Save serialhex/979494 to your computer and use it in GitHub Desktop.
/*
* 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;
}
}
}
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