Skip to content

Commit

Permalink
fix: revise type unifying conversion rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashigeru authored and kuron99 committed Aug 28, 2024
1 parent e1d8e9a commit 2d5685c
Show file tree
Hide file tree
Showing 3 changed files with 357 additions and 144 deletions.
13 changes: 0 additions & 13 deletions include/yugawara/type/conversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,6 @@ std::shared_ptr<::takatori::type::data const> unary_numeric_promotion(
::takatori::type::data const& type,
repository& repo = default_repository());

/**
* @brief promotes an exact numeric type as a minimal decimal type which can represents the original number.
* @param type the target type
* @param repo the type repository
* @return the promoted type if conversion was succeeded
* @return erroneous type if the input is not valid for this conversion
* @return pending type if the input contains erroneous or pending type
* @note if the conversion was not success, this may return some special types generated out of the given repository
*/
std::shared_ptr<::takatori::type::data const> unary_decimal_promotion(
::takatori::type::data const& type,
repository& repo = default_repository());

/**
* @brief promotes the numeric type with the another type.
* @param type the type to be promoted
Expand Down
Loading

0 comments on commit 2d5685c

Please sign in to comment.