kvasir-io / Kvasir

C++ Metaprogramming library enabling better static checking and register abstraction in embedded software
Apache License 2.0
409 stars 40 forks source link

Indexing in multiple read apply does not work. #92

Open CvRXX opened 7 years ago

CvRXX commented 7 years ago

If i try to compile the following code the ADL fails.

#include <Chip/nrf52.hpp>
#include <Io/Io.hpp>

constexpr auto button1 = Kvasir::Io::makePinLocation(Kvasir::Io::port0, Kvasir::Io::pin13);
constexpr auto button2 = Kvasir::Io::makePinLocation(Kvasir::Io::port0, Kvasir::Io::pin14);

int main()
{

                        if (get<0>(apply(read(button1), (read(button2))))  ) {}
}
odinthenerd commented 7 years ago

implementing #95 would fix this.