Skip to content
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

error: no matching function for call to std::function #44

Open
tansy opened this issue Mar 21, 2024 · 0 comments
Open

error: no matching function for call to std::function #44

tansy opened this issue Mar 21, 2024 · 0 comments

Comments

@tansy
Copy link

tansy commented Mar 21, 2024

I stumbled upon all bunch off errors:

src/lz4mt.cpp:310:3: error: no matching function for call to ‘std::function<int(void*, const char*, char*, int, int)>::function(void*)’
)
^

/usr/include/c++/functional:1913:9: error: no type named ‘type’ in ‘class std::result_of<void*&(void*, const char*, char*, int, int)>’
typename = _Requires<_Callable<_Functor>, void>>
^~~~~~~~
/usr/include/c++/functional:1888:7: note: candidate: std::function<_Res(_ArgTypes ...)>::function(std::function<_Res(_ArgTypes ...)>&&) [with _Res = int; _ArgTypes = {void*, const char*, char*, int, int}]
function(function&& __x) noexcept : _Function_base()
^~~~~~~~
/usr/include/c++/functional:1888:7: note: no known conversion for argument 1 from ‘void*’ to ‘std::function<int(void*, const char*, char*, int, int)>&&’
/usr/include/c++/functional:2092:5: note: candidate: std::function<_Res(_ArgTypes ...)>::function(const std::function<_Res(_ArgTypes ...)>&) [with _Res = int; _ArgTypes = {void*, const char*, char*, int, int}]
function<_Res(_ArgTypes...)>::
^~~~~~~~~~~~~~~~~~~~~~~~~~~~

and warnings:

In file included from src/lz4mt.cpp:12:0:
lz4/lib/lz4.h:788:67: note: declared here
LZ4_DEPRECATED("Use LZ4_resetStream() instead") LZ4LIB_API int LZ4_resetStreamState(void* state, char* inputBuffer);
^~~~~~~~~~~~~~~~~~~~
src/lz4mt.cpp:315:50: warning: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
LZ4_resetStreamState(lz4Ctx.get(), inputBuffer);
^
In file included from src/lz4mt.cpp:12:0:
lz4/lib/lz4.h:788:67: note: initializing argument 2 of ‘int LZ4_resetStreamState(void*, char*)’
LZ4_DEPRECATED("Use LZ4_resetStream() instead") LZ4LIB_API int LZ4_resetStreamState(void* state, char* inputBuffer);
^~~~~~~~~~~~~~~~~~~~
src/lz4mt.cpp:315:50: warning: ‘int LZ4_resetStreamState(void*, char*)’ is deprecated: Use LZ4_resetStream() instead [-Wdeprecated-declarations]
LZ4_resetStreamState(lz4Ctx.get(), inputBuffer);
^

All related to deprecated syntax.

Also minor thing, like u=outdated paths to xxhash in Makefile and unnecessary CRLF for .sln, .vcxproj, .vcxproj.filters files in .gitattributes.
I would do PR if it was alive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant