Download Latest Version coost c++17 version source code.tar.gz (186.2 kB)
Email in envelope

Get an email when there's a new version of Coost

Home / v2.0.3
Name Modified Size InfoDownloads / Week
Parent folder
co v2.0.3 released.tar.gz 2021-11-12 286.6 kB
co v2.0.3 released.zip 2021-11-12 368.6 kB
README.md 2021-11-12 1.4 kB
Totals: 3 Items   656.6 kB 0

New features

  • Add str::cat(...), fastream::cat(...), fastring::cat(...)

    :::sh fastring s("hello"); s.cat(' ', 23, "xx", false); // s -> "hello 23xxfalse" s = str::cat("hello", ' ', 23, true); // s -> "hello 23true"

  • Support writing logs to customed destinations by setting a writing callback in co/log.

  • Support daily rotation and log compression for co/log. Thanks to kuyoonjo. Compression is experimental at present.

  • Add method reset() for fastring & fastream.

  • Add method exit() for http::Server & rpc::Server.

  • Add co::maybe.

  • Add os::system().

  • Add some god-oriented programming features in co/god.h.

Changed

  • Improve exit() method for tcp::Server.

  • Memory optimization for coroutines.

  • Improve operator<< for fastream & fastring, optimization for string literal.

Bugs fixed

Source: README.md, updated 2021-11-12