userver: proto_structs::UnbreakableDependencyCycle Struct Reference
Loading...
Searching...
No Matches
proto_structs::UnbreakableDependencyCycle Struct Referencefinal

#include </data/code/userver/libraries/proto-structs/include/userver/proto-structs/unbreakable_dependency_cycle.hpp>

Detailed Description

A type that is generated for a field that participates in an unbreakable dependency cycle.

For example:

struct A {
struct Inner {
B::Inner field;
};
};
struct B {
struct Inner {
A::Inner field;
};
};

Nested types cannot be forwarded and wrapped in utils::Box, so we give up. At least we generate something valid for other fields and types in the file, so that if the current field is not actually needed, then proto structs are usable.

Definition at line 31 of file unbreakable_dependency_cycle.hpp.

Public Member Functions

bool operator== (const UnbreakableDependencyCycle &other) const =default
 

The documentation for this struct was generated from the following file: