Closed TorstenRobitzki closed 6 years ago
using server = bluetoe::server<
bluetoe::characteristic<
bluetoe::bind_characteristic_value< const std::uint8_t, &value_1 >,
bluetoe::notify
>,
bluetoe::characteristic<
bluetoe::bind_characteristic_value< const std::uint8_t, &value_2 >,
bluetoe::notify
>
>;
This compiles without error and should not, as a characteristic should not be a server option, but a service option.
Done for arguments / options / parameters to characteristic<>.
options to server<>, service<> and characteristic<> are checked now.
Passing an argument that is meant to be a parameter for a template should be caught as error when passing to an other template. For example when passing an appearance::mouse server option to a service, this should yield an error.