Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* 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;
: CFeatures(0)
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)
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