Unverified Commit ea24b955 authored by Dennis Jenkins's avatar Dennis Jenkins Committed by GitHub

Update description.h

gcc-7.3.0 and clang-6.0.1 compile without needing SubPath's copy constructor.  Whatever compiler Travis-CI is using, wants it.  I originally removed SubPath's copy-constructor because the struct contains a bare pointer that would be shallow-copied with the default constructor, potentially leading to a resource leak or use-after-free.
parent 6feb2b13
......@@ -363,8 +363,6 @@ private:
struct SubPath {
SubPath(std::string prefix, PathGroup* paths);
SubPath(const SubPath&) = delete;
SubPath& operator=(const SubPath&) = delete;
PathBuilder route(std::string path, Http::Method method, std::string description = "");
PathBuilder route(PathDecl fragment, std::string description = "");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment