-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example code from the page "Extending xtensor" gives "incomplete type"? #2794
Comments
So if I use all the code minus the Puzzle 1: Puzzle 2: if I add the line I get the errors:
And finally,
I tried initialising The example tells me to define the semantics and implement the methods and functions that are specific to the raw_tensor class. But I have the feeling that I'm doing that in the wrong place. Has anyone got this example to work with an instance of I've pasted the code here as
|
I'm trying to use xtensor for defining an image class with extra header information. The example Structures that embed shape and strides from the documentation page "Extending xtensor" comes very close to what I'm after. What I'm trying to do is have a class that also includes header information for loading NIfTI images (and provides file I/O for those).
Putting the code together in a program I had to change a few lines to reduce errors (for example, I could not find the struct
m_raw
which was used in the example code and add a few forward class template declarations) but I got as far as compilingmain()
.However, now the compiler gives the error
In the listing below
raw_tensor_adaptor
classFrom the error it is not clear to me if the error is with the arguments to the call or the template parameters of the class? The call seems more likely as the class was mainly copied, but as mentioned I had to change some things to remove errors messages.
There are many similar errors (incomplete type) all referring to
xtensor/xiterable.hpp
andxtensor/xcontainer.hpp
.If anyone has built this example I would love to hear what the missing link is!
Sorry that my 'minimal example' is so long.
code:
The text was updated successfully, but these errors were encountered: