Closed cloudhan closed 3 years ago
compiler version
Microsoft (R) C/C++ Optimizing Compiler Version 19.26.28806 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
My guess is that YOMM2 is intended for value semantics (which are preferred in general). I will leave the explanation of the specific error to @jll63 since I still don't understand yomm well enough.
From the example it is not clear that pointer semantics are needed. Might this be a classical XY problem? Why don't you just pass a reference instead? Not sure if I am being helpful :D
This is indeed a bug. I just pushed a fix. Thanks for the report.
with
virtual_<matrix*>
the following codeClick to expand!
```cpp #includetriggers compiling error
With
const matrix*
const dense_matrix*
andconst diagonal_matrix*
all work fine.