From 25dc741dd152cf77b5d50416315abd5b3bd64a4c Mon Sep 17 00:00:00 2001 From: Vladislav Oleshko Date: Fri, 8 Apr 2022 14:00:17 +0300 Subject: [PATCH] Add inline decl to CORSRules helpers (cherry picked from commit bccc03c1416419b9ff58faf8d7aa2aca909d72f9) --- include/crow/middlewares/cors.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/crow/middlewares/cors.h b/include/crow/middlewares/cors.h index add9ec3a0..fd5ab072c 100644 --- a/include/crow/middlewares/cors.h +++ b/include/crow/middlewares/cors.h @@ -182,17 +182,17 @@ namespace crow CORSRules default_ = CORSRules(this); }; - CORSRules& CORSRules::prefix(const std::string& prefix) + inline CORSRules& CORSRules::prefix(const std::string& prefix) { return handler_->prefix(prefix); } - CORSRules& CORSRules::blueprint(const Blueprint& bp) + inline CORSRules& CORSRules::blueprint(const Blueprint& bp) { return handler_->blueprint(bp); } - CORSRules& CORSRules::global() + inline CORSRules& CORSRules::global() { return handler_->global(); }