|
| From: | Albaro Pereyra |
| Subject: | Re: Unable to make drogon-assist |
| Date: | Tue, 2 Jul 2024 14:15:22 -0700 |
Thanks guys I now have a good starting point. Turns out the code has other errors I have to reach out to the maintainers about.
On Mon, 2024-07-01 at 14:31 -0700, Albaro Pereyra wrote:
> /home/albaro/drogon-assist/drogon/assist/passwdhash.cpp:20:15: error:
> ‘string_view’ does not name a type
> 20 | const string_view alphabet =
> "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
> | ^~~~~~~~~~~
Once again I have to say, this is not the right place to be asking
these questions. None of this has anything to do with GNU Make.
However, if you are using a version of C++ which supports
std::string_view (which C++20 does) then all I can assume is that the
above is a bug in the code, and the type should be std::string_view not
string_view.
It's possible, but considered _extremely_ bad form, to add a "using
std;" to this header file and avoid the need to prefix STL types with
std:: but apparently that was not done here (which is good because it's
wrong to do that; certainly in global scope but even inside a class or
namespace it's a bad idea).
So, I reiterate, you should report this problem to the drogon-assist
maintainers. They will have to help you.
Good luck!
PS. Or what Eddy said.
| [Prev in Thread] | Current Thread | [Next in Thread] |