-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
Description
I have a type that looks something like this:
```c++
class CAttenEntry {
float m_atten = -1.0f;
public:
CAttenEntry() : m_atten( -1 ) {}
float atten() const { return m_atten >= 0 ? m_atten : 0.5f; }
bool calculated() const { return m_atten >= 0; }
operator double() const { return atten(); }
};
I added the operator double() function to try to get the value to plot in this extension, but I can't get it to work so far. The values are in a C-style array, but I have tried copying the values into a vector and that still doesn't work. As of now I am copying the atten() values to a vector every time the array changes and that "works", but is very slow.
Using C++ and Visual Studio 2019