You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm getting the error in the issue.
To Reproduce
use autocxx::prelude::*;use autocxx::subclass::*;include_cpp!{
#include "gdal/gdal_priv.h"
safety!(unsafe_ffi)
generate!("GDALDataset")
subclass!("GDALDataset",MyDataset)}use ffi::*;#[subclass]#[derive(Default)]pubstructMyDataset;implGDALDataset_methodsforMyDataset{}fnmain(){}
Expected behavior
I'd like it to work.
Additional context
Requires gdal-devel or similar.
EDIT: dropping safety!(unsafe_ffi) fixes this, but then it fails with error: cannot bind rvalue reference of type ‘std::unique_ptr<GDALRelationship>&&’ to lvalue of type ‘std::unique_ptr<GDALRelationship>’.
The text was updated successfully, but these errors were encountered:
lnicola
changed the title
pointer argument requires that the function be marked unsafe
cannot bind rvalue reference of type .. to lvalue of type .. / pointer argument requires that the function be marked unsafe
Dec 9, 2023
Describe the bug
I'm getting the error in the issue.
To Reproduce
Expected behavior
I'd like it to work.
Additional context
Requires
gdal-devel
or similar.EDIT: dropping
safety!(unsafe_ffi)
fixes this, but then it fails witherror: cannot bind rvalue reference of type ‘std::unique_ptr<GDALRelationship>&&’ to lvalue of type ‘std::unique_ptr<GDALRelationship>’
.The text was updated successfully, but these errors were encountered: