Commit Graph

4242 Commits

Author SHA1 Message Date
Mateusz Pusz 932f354d4f docs: tutorial 8 added 2025-10-16 10:39:18 +02:00
Mateusz Pusz b7a2cfebe8 fix: named_unit can now be created for kind_of<dimensionless> 2025-10-16 09:47:23 +02:00
Mateusz Pusz 76abb8fee6 docs: tutorial 7 added 2025-10-15 11:26:55 +02:00
Mateusz Pusz 1a84e673c6 refactor: MP_UNITS_INSTALL renamed to MP_UNITS_BUILD_INSTALL 2025-10-14 20:32:37 +02:00
Mateusz Pusz 582a7f4f52 style: pre-commit 2025-10-14 20:27:40 +02:00
Mateusz Pusz 8e7291693c refactor: 💥 rename default_denominator to default_solidus in unit_symbol_solidus enum 2025-10-14 18:28:58 +02:00
Mateusz Pusz 0e0751a2c2 style: pre-commit 2025-10-14 18:25:58 +02:00
Mateusz Pusz 3d6149acbf docs: first tutorials added 2025-10-14 18:25:58 +02:00
Mateusz Pusz 815282a9d2 docs: contributing guide heavily simplified 2025-10-14 18:25:58 +02:00
Mateusz Pusz 57f593f831 docs: another markdownlint issue fixed 2025-10-14 18:25:58 +02:00
Mateusz Pusz 3d097d21e1 docs: "Install as a Dependency" added to README 2025-10-14 18:25:58 +02:00
Mateusz Pusz ce334ac0f4 docs: markdownlint issues fixed 2025-10-14 18:25:58 +02:00
Mateusz Pusz e9b70efdff Merge branch 'master' of github.com:mpusz/units 2025-10-14 18:25:09 +02:00
Mateusz Pusz 5be02cf5b7 Merge pull request #731 from Radnyx/fix/stl-unspecified-literal-type
build: MSVC fix for unspecified std::chrono::duration type
2025-10-11 11:45:23 +02:00
Radnyx cc25814e82 formatting 2025-10-09 16:35:52 -07:00
Radnyx ef0e653dfe fix: seconds literal has unspecified type and depends on implementation 2025-10-09 16:35:06 -07:00
Mateusz Pusz 4b933b4965 Merge pull request #730 from Radnyx/fix/msvc-empty-bases
build: MSVC workaround for empty base classes
2025-10-09 08:00:39 +02:00
RanDair Porter 2af182120a msvc empty bases workaround 2025-10-08 12:33:19 -07:00
Mateusz Pusz c363cf1f26 Add stdexcept include for hosted MP_UNITS
Resolves #729
2025-10-04 13:19:35 +02:00
Mateusz Pusz bfcb26e509 Add limits header to prime.h 2025-10-02 17:44:40 +02:00
Mateusz Pusz 91f8517d63 Merge pull request #727 from rothmichaels/fix/ci-freestanding-linker-issue
fix: resolve CMake compiler test failure in freestanding CI builds
2025-09-29 23:19:02 +02:00
Roth Michaels bb3ddacdde fix: resolve CMake compiler test failure in freestanding CI builds
The freestanding CI builds were failing during CMake's initial compiler test
because the -ffreestanding flag was causing linker issues. The linker expected
a main() function but freestanding environments may not have one.

This fix sets CMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY when freestanding
mode is enabled, which instructs CMake to skip the linking step during
compiler tests and only compile to static libraries.

This resolves the undefined reference to main error in CI while maintaining
proper freestanding compilation semantics.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-29 15:06:25 -04:00
Mateusz Pusz a6a5b6140c Merge pull request #724 from alex-tee/cmake_install_flag
build: add INSTALL option to cmake
2025-09-25 08:52:19 +02:00
Alexandros Theodotou 1688d278e6 build: add INSTALL option to cmake
Implements #721.
2025-09-25 11:20:53 +09:00
Mateusz Pusz c71fef5c1a ci: update dependency review configuration
Removed comments and allowed licenses from dependency review configuration.
2025-09-24 14:28:20 +02:00
Mateusz Pusz 54045e213a build: update fmt 12.0.0 2025-09-22 15:05:29 +02:00
Mateusz Pusz c9be7bb466 docs: "Concepts" chapter improved 2025-09-21 15:07:38 +02:00
Mateusz Pusz 30576ee365 docs: "Systems of Quantities" chapter improved 2025-09-21 14:39:45 +02:00
Mateusz Pusz ba62f15d91 docs: "Interface Introduction" improved 2025-09-21 14:33:32 +02:00
Mateusz Pusz f16ab8d973 style: markdownlint rules updated 2025-09-21 13:53:00 +02:00
Mateusz Pusz 5ddd368d86 docs: README updated 2025-09-21 13:52:26 +02:00
Mateusz Pusz f97eb9bad6 fix(docs): typo in a file name fixed 2025-09-21 13:27:15 +02:00
Mateusz Pusz b2738dd9c5 docs: "Quick Start" Improved 2025-09-21 13:22:30 +02:00
Mateusz Pusz 80b89337a7 docs: "Introduction" chapter improved 2025-09-21 13:21:34 +02:00
Mateusz Pusz e5c11afe00 docs: "Installation and Usage" cleanup 2025-09-21 13:21:04 +02:00
Mateusz Pusz af6dce5666 docs: examples links fixed 2025-09-21 13:20:16 +02:00
Mateusz Pusz 093485271b docs: compiler explorer links replaced with buttons 2025-09-21 13:18:38 +02:00
Mateusz Pusz 50af5ea5a1 docs: minor improvements 2025-09-21 13:15:42 +02:00
Mateusz Pusz 7d0b5677ff docs: clang-21 added to devcontainer/README.md 2025-09-21 13:10:17 +02:00
Mateusz Pusz 9341cb786f docs: examples updated and deprecated tags generation replaced with modern usage 2025-09-21 13:09:41 +02:00
Mateusz Pusz 8489cc2299 fix: MSVC workarounds for consteval functions 2025-09-21 12:51:47 +02:00
Mateusz Pusz eac1e21789 Merge branch 'master' of github.com:mpusz/mp-units 2025-09-21 11:38:08 +02:00
Mateusz Pusz 39754018ba build: explicit_this enabled for MSVC 19.5 2025-09-17 19:40:59 -06:00
Mateusz Pusz 0b0e7a8940 fix: dynamic_spec_id_handler fixed for gcc-15 2025-09-17 18:25:51 -06:00
Mateusz Pusz f4c465a6fd build: gcc-15 enabled in check_all.sh 2025-09-17 17:56:20 -06:00
Mateusz Pusz 0cb27738ed build: clang-21 added to check_all.sh 2025-09-17 17:55:40 -06:00
Mateusz Pusz 76077aa671 style: pre-commit 2025-09-17 14:00:16 -06:00
Mateusz Pusz a6393a663e feat; old MSVC workarounds disabled for the latest version 2025-09-17 13:38:48 -06:00
Mateusz Pusz 7732545ae6 refactor: all CTADs made implicit 2025-09-17 13:35:53 -06:00
Mateusz Pusz 6a532ed43e fix: CTAD issue workaround for MSVC 2025-09-17 13:34:36 -06:00