Commit 5d99b8f3 authored by Xianwen Chen's avatar Xianwen Chen Committed by Andrew Twyman

Fix no member named 'invalid_argument' in namespace 'std'

parent f0bd2692
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from textsort.djinni
#import "TXSSortItems+Private.h"
#import "TXSSortItems.h"
#import "DJICppWrapperCache+Private.h"
#import "DJIError.h"
#import "DJIMarshal+Private.h"
#import "TXSSortItems+Private.h"
#import "TXSTextboxListener+Private.h"
#import "collections/generated-src/objc/TXSItemList+Private.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
@interface TXSSortItems ()
- (id)initWithCpp:(const std::shared_ptr<::textsort::SortItems>&)cppRef;
@end
@implementation TXSSortItems {
::djinni::CppProxyCache::Handle<std::shared_ptr<::textsort::SortItems>> _cppRefHandle;
}
- (id)initWithCpp:(const std::shared_ptr<::textsort::SortItems>&)cppRef
{
if (self = [super init]) {
_cppRefHandle.assign(cppRef);
}
return self;
}
- (void)sort:(TXSSortOrder)order
items:(nonnull TXSItemList *)items {
try {
_cppRefHandle.get()->sort(::djinni::Enum<::textsort::sort_order, TXSSortOrder>::toCpp(order),
::djinni_generated::ItemList::toCpp(items));
} DJINNI_TRANSLATE_EXCEPTIONS()
}
+ (nullable TXSSortItems *)createWithListener:(nullable id<TXSTextboxListener>)listener {
try {
auto r = ::textsort::SortItems::create_with_listener(::djinni_generated::TextboxListener::toCpp(listener));
return ::djinni_generated::SortItems::fromCpp(r);
} DJINNI_TRANSLATE_EXCEPTIONS()
}
+ (nonnull TXSItemList *)runSort:(nonnull TXSItemList *)items {
try {
auto r = ::textsort::SortItems::run_sort(::djinni_generated::ItemList::toCpp(items));
return ::djinni_generated::ItemList::fromCpp(r);
} DJINNI_TRANSLATE_EXCEPTIONS()
}
namespace djinni_generated {
auto SortItems::toCpp(ObjcType objc) -> CppType
{
if (!objc) {
return nullptr;
}
return objc->_cppRefHandle.get();
}
auto SortItems::fromCppOpt(const CppOptType& cpp) -> ObjcType
{
if (!cpp) {
return nil;
}
return ::djinni::get_cpp_proxy<TXSSortItems>(cpp);
}
} // namespace djinni_generated
@end
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from textsort.djinni
#import "TXSTextboxListener+Private.h"
#import "TXSTextboxListener.h"
#import "DJIObjcWrapperCache+Private.h"
#import "collections/generated-src/objc/TXSItemList+Private.h"
#include <stdexcept>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
namespace djinni_generated {
class TextboxListener::ObjcProxy final
: public ::textsort::TextboxListener
, public ::djinni::ObjcProxyCache::Handle<ObjcType>
{
public:
using Handle::Handle;
void update(const ::collections::ItemList & c_items) override
{
@autoreleasepool {
[Handle::get() update:(::djinni_generated::ItemList::fromCpp(c_items))];
}
}
};
} // namespace djinni_generated
namespace djinni_generated {
auto TextboxListener::toCpp(ObjcType objc) -> CppType
{
if (!objc) {
return nullptr;
}
return ::djinni::get_objc_proxy<ObjcProxy>(objc);
}
auto TextboxListener::fromCppOpt(const CppOptType& cpp) -> ObjcType
{
if (!cpp) {
return nil;
}
return dynamic_cast<ObjcProxy&>(*cpp).Handle::get();
}
} // namespace djinni_generated
......@@ -9,6 +9,7 @@
#import "TXSSortOrder+Private.h"
#import "TXSTextboxListener+Private.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -5,6 +5,7 @@
#import "TXSTextboxListener.h"
#import "DJIObjcWrapperCache+Private.h"
#import "TXSItemList+Private.h"
#include <stdexcept>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -130,6 +130,9 @@ class ObjcppGenerator(spec: Spec) extends BaseObjcGenerator(spec) {
refs.body.add("#import " + q(spec.objcBaseLibIncludePrefix + "DJIError.h"))
refs.body.add("#include <exception>")
}
if (!spec.cppNnType.isEmpty || !spec.cppNnCheckExpression.nonEmpty) {
refs.body.add("#include <stdexcept>")
}
if (i.ext.objc) {
refs.body.add("#import " + q(spec.objcBaseLibIncludePrefix + "DJIObjcWrapperCache+Private.h"))
......
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from class1.djinni
#import "DBClass1+Private.h"
#import "DBClass1.h"
#import "DBClass1+Private.h"
#import "DBInnerClass+Private.h"
#import "DJICppWrapperCache+Private.h"
#import "DJIError.h"
#import "DJIMarshal+Private.h"
#import "djinni-packages/package2/generated-src/objc/DBClass2+Private.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
@interface DBClass1 ()
- (id)initWithCpp:(const std::shared_ptr<::package1::Class1>&)cppRef;
@end
@implementation DBClass1 {
::djinni::CppProxyCache::Handle<std::shared_ptr<::package1::Class1>> _cppRefHandle;
}
- (id)initWithCpp:(const std::shared_ptr<::package1::Class1>&)cppRef
{
if (self = [super init]) {
_cppRefHandle.assign(cppRef);
}
return self;
}
- (nonnull NSString *)getName {
try {
auto r = _cppRefHandle.get()->get_name();
return ::djinni::String::fromCpp(r);
} DJINNI_TRANSLATE_EXCEPTIONS()
}
- (nonnull NSString *)getInnerClassName {
try {
auto r = _cppRefHandle.get()->get_inner_class_name();
return ::djinni::String::fromCpp(r);
} DJINNI_TRANSLATE_EXCEPTIONS()
}
- (nullable DBClass2 *)getClass2 {
try {
auto r = _cppRefHandle.get()->get_class2();
return ::djinni_generated::Class2::fromCpp(r);
} DJINNI_TRANSLATE_EXCEPTIONS()
}
+ (nullable DBClass1 *)createWithInnerClass:(nullable id<DBInnerClass>)innerClass {
try {
auto r = ::package1::Class1::create_with_inner_class(::djinni_generated::InnerClass::toCpp(innerClass));
return ::djinni_generated::Class1::fromCpp(r);
} DJINNI_TRANSLATE_EXCEPTIONS()
}
namespace djinni_generated {
auto Class1::toCpp(ObjcType objc) -> CppType
{
if (!objc) {
return nullptr;
}
return objc->_cppRefHandle.get();
}
auto Class1::fromCppOpt(const CppOptType& cpp) -> ObjcType
{
if (!cpp) {
return nil;
}
return ::djinni::get_cpp_proxy<DBClass1>(cpp);
}
} // namespace djinni_generated
@end
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from inner_class.djinni
#import "DBInnerClass+Private.h"
#import "DBInnerClass.h"
#import "DJIMarshal+Private.h"
#import "DJIObjcWrapperCache+Private.h"
#include <stdexcept>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
namespace djinni_generated {
class InnerClass::ObjcProxy final
: public ::package1::InnerClass
, public ::djinni::ObjcProxyCache::Handle<ObjcType>
{
public:
using Handle::Handle;
std::string get_name() override
{
@autoreleasepool {
auto r = [Handle::get() getName];
return ::djinni::String::toCpp(r);
}
}
};
} // namespace djinni_generated
namespace djinni_generated {
auto InnerClass::toCpp(ObjcType objc) -> CppType
{
if (!objc) {
return nullptr;
}
return ::djinni::get_objc_proxy<ObjcProxy>(objc);
}
auto InnerClass::fromCppOpt(const CppOptType& cpp) -> ObjcType
{
if (!cpp) {
return nil;
}
return dynamic_cast<ObjcProxy&>(*cpp).Handle::get();
}
} // namespace djinni_generated
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from class2.djinni
#import "DBClass2+Private.h"
#import "DBClass2.h"
#import "DJICppWrapperCache+Private.h"
#import "DJIError.h"
#import "DJIMarshal+Private.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
@interface DBClass2 ()
- (id)initWithCpp:(const std::shared_ptr<::package2::Class2>&)cppRef;
@end
@implementation DBClass2 {
::djinni::CppProxyCache::Handle<std::shared_ptr<::package2::Class2>> _cppRefHandle;
}
- (id)initWithCpp:(const std::shared_ptr<::package2::Class2>&)cppRef
{
if (self = [super init]) {
_cppRefHandle.assign(cppRef);
}
return self;
}
- (nonnull NSString *)getName {
try {
auto r = _cppRefHandle.get()->get_name();
return ::djinni::String::fromCpp(r);
} DJINNI_TRANSLATE_EXCEPTIONS()
}
namespace djinni_generated {
auto Class2::toCpp(ObjcType objc) -> CppType
{
if (!objc) {
return nullptr;
}
return objc->_cppRefHandle.get();
}
auto Class2::fromCppOpt(const CppOptType& cpp) -> ObjcType
{
if (!cpp) {
return nil;
}
return ::djinni::get_cpp_proxy<DBClass2>(cpp);
}
} // namespace djinni_generated
@end
......@@ -6,6 +6,7 @@
#import "DBClientReturnedRecord+Private.h"
#import "DJIMarshal+Private.h"
#import "DJIObjcWrapperCache+Private.h"
#include <stdexcept>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -6,6 +6,7 @@
#import "DJICppWrapperCache+Private.h"
#import "DJIError.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -8,6 +8,7 @@
#import "DJIError.h"
#import "DJIMarshal+Private.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -8,6 +8,7 @@
#import "DJIError.h"
#import "DJIMarshal+Private.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -7,6 +7,7 @@
#import "DJIError.h"
#import "DJIMarshal+Private.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -9,6 +9,7 @@
#import "DJIMarshal+Private.h"
#import "DJIObjcWrapperCache+Private.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -8,6 +8,7 @@
#import "DJICppWrapperCache+Private.h"
#import "DJIError.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -6,6 +6,7 @@
#import "DBExternRecordWithDerivings+Private.h"
#import "DBTestHelpers+Private.h"
#import "DJIObjcWrapperCache+Private.h"
#include <stdexcept>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -4,6 +4,7 @@
#import "DBFirstListener+Private.h"
#import "DBFirstListener.h"
#import "DJIObjcWrapperCache+Private.h"
#include <stdexcept>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -4,6 +4,7 @@
#import "DBJavaOnlyListener+Private.h"
#import "DBJavaOnlyListener.h"
#import "DJIError.h"
#include <stdexcept>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -8,6 +8,7 @@
#import "DJICppWrapperCache+Private.h"
#import "DJIError.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -4,6 +4,7 @@
#import "DBObjcOnlyListener+Private.h"
#import "DBObjcOnlyListener.h"
#import "DJIObjcWrapperCache+Private.h"
#include <stdexcept>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -7,6 +7,7 @@
#import "DJIError.h"
#import "DJIMarshal+Private.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -7,6 +7,7 @@
#import "DJIError.h"
#import "DJIMarshal+Private.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -7,6 +7,7 @@
#import "DJIError.h"
#import "DJIMarshal+Private.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -4,6 +4,7 @@
#import "DBSecondListener+Private.h"
#import "DBSecondListener.h"
#import "DJIObjcWrapperCache+Private.h"
#include <stdexcept>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -8,6 +8,7 @@
#import "DJIMarshal+Private.h"
#import "Duration-objc.hpp"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -15,6 +15,7 @@
#import "DJIError.h"
#import "DJIMarshal+Private.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -8,6 +8,7 @@
#import "DJIMarshal+Private.h"
#import "DJIObjcWrapperCache+Private.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -9,6 +9,7 @@
#import "DJIError.h"
#import "DJIObjcWrapperCache+Private.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
......@@ -8,6 +8,7 @@
#import "DJIError.h"
#import "DJIMarshal+Private.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment