Fixed nested call expressions order in sequence diagrams
This commit is contained in:
@@ -6,23 +6,17 @@
|
||||
|
||||
namespace clanguml {
|
||||
namespace t20029 {
|
||||
using encoder_function_t = std::function<std::string(std::string &&)>;
|
||||
|
||||
std::string encode_b64(std::string &&content) { return std::move(content); }
|
||||
|
||||
template <typename T> class Encoder : public T {
|
||||
public:
|
||||
bool send(std::string &&msg)
|
||||
{
|
||||
auto encoded = encode(std::move(msg));
|
||||
return T::send(std::move(encoded));
|
||||
return T::send(std::move(encode(std::move(msg))));
|
||||
}
|
||||
|
||||
protected:
|
||||
std::string encode(std::string &&msg) { return encode_b64(std::move(msg)); }
|
||||
|
||||
private:
|
||||
encoder_function_t f_;
|
||||
};
|
||||
|
||||
template <typename T> class Retrier : public T {
|
||||
|
||||
@@ -319,7 +319,7 @@ int main(int argc, char *argv[])
|
||||
if (returnCode != 0)
|
||||
return returnCode;
|
||||
|
||||
clanguml::util::setup_logging(debug_log);
|
||||
clanguml::util::setup_logging(debug_log ? 3 : 1);
|
||||
|
||||
return session.run();
|
||||
}
|
||||
Reference in New Issue
Block a user