Help! Defining A Class

Wolzen

Platinian
I'd added a struct for an object called BigDouble but one of its fields contains an instance of CultureInfo.
struct BigDouble {
static constexpr double EPSILON = 9.999999974752427E-07;
static const CultureInfo Culture; //<----- This right here.
static const BigDouble Zero;
double numerator;
long exponent;
};

I'd like to know if the following class definition is sufficient as a dependency for BigDouble. CultureInfo isn't needed anywhere else except for the BigDouble object to work. Attached is the game dump.

class CultureInfo {
public:
#pragma pack(push, 1)
struct Data {
int ansi;
int ebcdic;
int mac;
int oem;
bool right_to_left;
uint8_t list_sep;
};
#pragma pack(pop)
// Static instance for invariant culture (declaration only)
static const CultureInfo InvariantCulture;
CultureInfo() = default;
explicit CultureInfo(const std::string& name) : m_name(name) {}
const std::string& GetName() const { return m_name; }
private:
std::string m_name = "Invariant";
};
 

Attachments

Back
Top Bottom