Skip to content

Commit

Permalink
Lipsticks
Browse files Browse the repository at this point in the history
Signed-off-by: yamacir-kit <[email protected]>
  • Loading branch information
yamacir-kit committed Feb 15, 2024
1 parent c996534 commit 80cca00
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Procedures for each standard are provided by the following R7RS-style libraries:
cmake -B build -DCMAKE_BUILD_TYPE=Release
cd build
make package
sudo apt install build/meevax_0.5.117_amd64.deb
sudo apt install build/meevax_0.5.118_amd64.deb
```

or
Expand Down Expand Up @@ -123,9 +123,9 @@ sudo rm -rf /usr/local/share/meevax

| Target Name | Description
|-------------|-------------
| `all` | Build shared-library `libmeevax.0.5.117.so` and executable `meevax`
| `all` | Build shared-library `libmeevax.0.5.118.so` and executable `meevax`
| `test` | Test executable `meevax`
| `package` | Generate debian package `meevax_0.5.117_amd64.deb`
| `package` | Generate debian package `meevax_0.5.118_amd64.deb`
| `install` | Copy files into `/usr/local` directly

## Usage
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.117
0.5.118
4 changes: 3 additions & 1 deletion include/meevax/memory/heterogeneous_pointer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ inline namespace memory
{
template <typename... Us>
explicit constexpr binder(Us&&... xs)
: std::conditional_t<std::is_base_of_v<Top, Bound>, Top, Bound> { std::forward<decltype(xs)>(xs)... }
: std::conditional_t<std::is_base_of_v<Top, Bound> and std::is_constructible_v<Top, Us...>, Top, Bound> {
std::forward<decltype(xs)>(xs)...
}
{}

~binder() override = default;
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/exact_integer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ inline namespace kernel
if (mpz_init_set_str(value, (s.at(0) == '+' ? s.substr(1) : s).c_str(), radix))
{
mpz_clear(value);
throw std::invalid_argument("not a integer");
throw std::invalid_argument("not an exact-integer");
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/kernel/number.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ inline namespace kernel
}
catch (std::invalid_argument const&)
{
return make(ratio(literal, radix));
return make<ratio>(literal, radix);
}
}

Expand Down Expand Up @@ -487,7 +487,7 @@ inline namespace kernel
}
catch (std::invalid_argument const&)
{
return make(complex(literal, radix));
return make<complex>(literal, radix);
}
}

Expand Down

0 comments on commit 80cca00

Please sign in to comment.