When I use the method suggested in tutorial for wrapping overloaded function I get an compilation error "invalid use of qualified-name"
#include "rice/Class.hpp"
#include "rice/String.hpp"
#include "rice/Data_Type.hpp"
#include "rice/Constructor.hpp"
using namespace Rice;
class Container
{
size_t capacity(); // Get the capacity
void capacity(size_t cap); // Set the capacity
};
extern "C"
void Init_test()
{
typedef size_t (*Container::get_capacity)();
typedef void (*Container::set_capacity)(size_t);
}
I am not sure what I am doing wrong ?
|