This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
These are some concepts I had to create myself for my projects. | |
There may be shorter ways or more elegant ways to do these, yet I could not find them myself. | |
If you have any suggestions, please feel free to comment. | |
PS: I'll add tests for all of these concepts, eventually. | |
PPS: You can copy and paste this file as_is to Compiler Explorer (https://godbolt.org/) to play with. | |
Just make sure that you are compiling with a C++20-compliant compiler, with appropriate flags (/std:c++20 for MSVC, --std=c++20 for gcc). | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef LOG_WINDOW_H | |
#define LOG_WINDOW_H | |
// Say you have a MyFrame class derived from wxFrame and you want to add a wxWindow to that and use it as a spdlog sink. | |
// Declaration of your MyFrame class should be like this: | |
// #include "LogWindow.h" | |
// class MyFrame: public wxFrame { | |
// public: | |
// MyFrame(); | |
// private: |