Это мой заголовок: >
Код: Выделить всё
#include
#include
#include
#include
class NativeBoostNumber {
public:
NativeBoostNumber();
NativeBoostNumber(const NativeBoostNumber &src);
NativeBoostNumber(NativeBoostNumber &&src);
NativeBoostNumber(const std::string &numStr);
NativeBoostNumber(std::any &num, NumType type);
~NativeBoostNumber();
void set(const std::string &numStr);
void set(const std::string &numStr, NumType type);
void set(std::any &num, NumType type);
std::string str(int digital, int fmtFlag);
std::string str(NumType targetType, int digital, int fmtFlag);
NumType getType();
private:
NumType type = NumType::UNKNOWN;
std::any boostType;
};
Код: Выделить всё
/Users/zu/Library/Developer/Xcode/DerivedData/BoostMath-axcaevrzeqeotvgrghhapdjmtyui/Build/Products/Debug-iphoneos/BoostMath.framework/Headers/NativeBoostNumber.hpp:36:10: error: no type named 'any' in namespace 'std'
std::any boostType;
^
При написании кода все в порядке, нет подсказок об ошибках. редакторе, код intelliSence работает нормально.
Я думаю, это могут быть проблемы с компилятором, но настройки сборки XCode слишком сложны, чтобы выяснить, как изменить компилятор C++.
Более того, я find std::optional также не работает.
Вот полное сообщение сборки:

Подробнее здесь: https://stackoverflow.com/questions/791 ... espace-std
Мобильная версия