Giter VIP home page Giter VIP logo

heartbeat's People

Contributors

berak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

heartbeat's Issues

can't compile on mac

Hi Berak,
I tried compiling this on Mac but i get the following (to strict c++ compiler?)

50%] Building CXX object CMakeFiles/heartbeat.dir/heartbeat.cpp.o
PreProcess/heartbeat.cpp:11:70: error: declaration of 'size_t' shadows template parameter
template <typename Vec, typename Operator, typename size_t, typename size_t>
^
PreProcess/heartbeat.cpp:11:53: note: template parameter is declared here
template <typename Vec, typename Operator, typename size_t, typename size_t>
^
PreProcess/heartbeat.cpp:12:35: error: reference to 'size_t' is ambiguous
void foreach(Vec &v, Operator &op,size_t off,size_t len) {
^
PreProcess/heartbeat.cpp:11:70: note: candidate found by name lookup is 'size_t'
template <typename Vec, typename Operator, typename size_t, typename size_t>
^
PreProcess/heartbeat.cpp:11:53: note: candidate found by name lookup is 'size_t'
template <typename Vec, typename Operator, typename size_t, typename size_t>
^
PreProcess/heartbeat.cpp:12:46: error: reference to 'size_t' is ambiguous
void foreach(Vec &v, Operator &op,size_t off,size_t len) {
^
PreProcess/heartbeat.cpp:11:70: note: candidate found by name lookup is 'size_t'
template <typename Vec, typename Operator, typename size_t, typename size_t>
^
PreProcess/heartbeat.cpp:11:53: note: candidate found by name lookup is 'size_t'
template <typename Vec, typename Operator, typename size_t, typename size_t>
^
PreProcess/heartbeat.cpp:13:10: error: reference to 'size_t' is ambiguous
for (size_t i=off; i<len; ++i) {
^
PreProcess/heartbeat.cpp:11:70: note: candidate found by name lookup is 'size_t'
template <typename Vec, typename Operator, typename size_t, typename size_t>
^
PreProcess/heartbeat.cpp:11:53: note: candidate found by name lookup is 'size_t'
template <typename Vec, typename Operator, typename size_t, typename size_t>
^
PreProcess/heartbeat.cpp:228:29: error: reference to 'Hamming' is ambiguous
foreach(din,Hamming(din.size()));
^
PreProcess/heartbeat.cpp:57:8: note: candidate found by name lookup is 'Hamming'
struct Hamming
^
/usr/local/include/opencv2/core/base.hpp:429:19: note: candidate found by name lookup is 'cv::Hamming'
struct CV_EXPORTS Hamming
^
PreProcess/heartbeat.cpp:228:17: error: no matching function for call to 'foreach'
foreach(din,Hamming(din.size()));
^~~~~~~
PreProcess/heartbeat.cpp:19:6: note: candidate function [with Vec = std::__1::vector<float, std::__1::allocator >, Operator = Hamming] not viable: expects an l-value for 2nd argument
void foreach(Vec &v, Operator &op) {
^
PreProcess/heartbeat.cpp:12:6: note: candidate function template not viable: requires 4 arguments, but 2 were provided
void foreach(Vec &v, Operator &op,size_t off,size_t len) {
^
PreProcess/heartbeat.cpp:249:30: error: reference to 'Hamming' is ambiguous
foreach(idft,Hamming(idft.size()));
^
PreProcess/heartbeat.cpp:57:8: note: candidate found by name lookup is 'Hamming'
struct Hamming
^
/usr/local/include/opencv2/core/base.hpp:429:19: note: candidate found by name lookup is 'cv::Hamming'
struct CV_EXPORTS Hamming
^
PreProcess/heartbeat.cpp:249:17: error: no matching function for call to 'foreach'
foreach(idft,Hamming(idft.size()));
^~~~~~~
PreProcess/heartbeat.cpp:19:6: note: candidate function [with Vec = std::__1::vector<float, std::__1::allocator >, Operator = Hamming] not viable: expects an l-value for 2nd argument
void foreach(Vec &v, Operator &op) {
^
PreProcess/heartbeat.cpp:12:6: note: candidate function template not viable: requires 4 arguments, but 2 were provided
void foreach(Vec &v, Operator &op,size_t off,size_t len) {
^
PreProcess/heartbeat.cpp:20:12: error: no matching function for call to 'foreach'
return foreach(v,op,0,v.size());
^~~~~~~
PreProcess/heartbeat.cpp:219:13: note: in instantiation of function template specialization 'foreach<std::__1::vector<float, std::__1::allocator >, MinMaxId>' requested here
foreach(ring.elm,mm);
^
PreProcess/heartbeat.cpp:12:6: note: candidate template ignored: deduced conflicting types for parameter 'size_t' ('int' vs. 'unsigned long')
void foreach(Vec &v, Operator &op,size_t off,size_t len) {
^
PreProcess/heartbeat.cpp:19:6: note: candidate function template not viable: requires 2 arguments, but 4 were provided
void foreach(Vec &v, Operator &op) {
^
PreProcess/heartbeat.cpp:20:12: error: no matching function for call to 'foreach'
return foreach(v,op,0,v.size());
^~~~~~~
PreProcess/heartbeat.cpp:233:17: note: in instantiation of function template specialization 'foreach<std::__1::vector<float, std::__1::allocator >, void (int, float &)>' requested here
foreach(dout,Abs);
^
PreProcess/heartbeat.cpp:12:6: note: candidate template ignored: deduced conflicting types for parameter 'size_t' ('int' vs. 'unsigned long')
void foreach(Vec &v, Operator &op,size_t off,size_t len) {
^
PreProcess/heartbeat.cpp:19:6: note: candidate function template not viable: requires 2 arguments, but 4 were provided
void foreach(Vec &v, Operator &op) {
^
10 errors generated.
make[2]: *** [CMakeFiles/heartbeat.dir/heartbeat.cpp.o] Error 1
make[1]: *** [CMakeFiles/heartbeat.dir/all] Error 2
make: *** [all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.