Skip to content

Commit

Permalink
format logger
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBronder committed Oct 30, 2024
1 parent 63c3355 commit ddafb3c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions include/riccati/logger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ class PtrLogger : public LoggerBase<PtrLogger<Ptr>> {
std::unique_ptr<Stream, StreamDeleter>&& output)
: output_(std::move(output)) {}
template <typename Stream>
RICCATI_NO_INLINE explicit PtrLogger(
const std::shared_ptr<Stream>& output)
RICCATI_NO_INLINE explicit PtrLogger(const std::shared_ptr<Stream>& output)
: output_(output) {}

/**
Expand All @@ -211,15 +210,13 @@ class PtrLogger : public LoggerBase<PtrLogger<Ptr>> {
full_msg += std::string("]");
*output_ << full_msg + "\n";
}

};

template <typename Stream, typename StreamDeleter = std::default_delete<Stream>>
using DefaultLogger = PtrLogger<std::unique_ptr<Stream, StreamDeleter>>;
template <typename Stream>
using SharedLogger = PtrLogger<std::shared_ptr<Stream>>;


} // namespace riccati

#endif

0 comments on commit ddafb3c

Please sign in to comment.