- Notifications
You must be signed in to change notification settings - Fork0
A simple example using C++20 core language features for the DCI paradigm
License
NotificationsYou must be signed in to change notification settings
thives/dci-example-cpp
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A simple example application using C++20 core language features. The goal is to attempt to follow the DCI paradigm.(http://fulloo.info/)
The example is inspired by the money transfer algorithm example.(http://fulloo.info/Examples/C++Examples/Account1/)
The C++20 core features used are the "Constraints and concepts". Note that at the time of writing this GCC only supports the TS version of this feature and as such that is what is used in this example as well.(https://en.cppreference.com/w/cpp/language/constraints)
At the time of writing GCC will compile this project with the following command:
g++ -std=c++2a -fconcepts main.cpp checkingaccount.cpp savingsaccount.cpp logger.cpp -o moneytransferexample
./moneytransferexample