Skip to content

Commit

Permalink
Fix #19683 : Generated code fails to build with x86_64-linux-gnu-g++-…
Browse files Browse the repository at this point in the history
…13 (#19684)

* Add C++ header for cpp-pistache-server to fix breaking CMake build of generated code.

* Sort includes of system C++ headers for cpp-pistache-server.

* Add samples generated from fixing bug #19683.
  • Loading branch information
winkler-pixop authored Oct 1, 2024
1 parent 241f51c commit 2551689
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
#ifndef {{prefix}}Helpers_H_
#define {{prefix}}Helpers_H_

#include <cstdint>
#include <ctime>
#include <string>
#include <sstream>
#include <vector>
#include <map>
#include <set>
#include <sstream>
#include <string>
#include <vector>

namespace {{helpersNamespace}}
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
#ifndef Helpers_H_
#define Helpers_H_

#include <cstdint>
#include <ctime>
#include <string>
#include <sstream>
#include <vector>
#include <map>
#include <set>
#include <sstream>
#include <string>
#include <vector>

namespace org::openapitools::server::helpers
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
#ifndef Helpers_H_
#define Helpers_H_

#include <cstdint>
#include <ctime>
#include <string>
#include <sstream>
#include <vector>
#include <map>
#include <set>
#include <sstream>
#include <string>
#include <vector>

namespace org::openapitools::server::helpers
{
Expand Down
7 changes: 4 additions & 3 deletions samples/server/petstore/cpp-pistache/model/Helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
#ifndef Helpers_H_
#define Helpers_H_

#include <cstdint>
#include <ctime>
#include <string>
#include <sstream>
#include <vector>
#include <map>
#include <set>
#include <sstream>
#include <string>
#include <vector>

namespace org::openapitools::server::helpers
{
Expand Down

0 comments on commit 2551689

Please sign in to comment.