[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Lambda-Expression and color_set
From: |
kruse . matthis |
Subject: |
Lambda-Expression and color_set |
Date: |
Fri, 31 Jan 2014 21:19:21 +0100 (CET) |
Hi @ all! There is a strange bug using color_set in a lambda-expression. I get
errors like "invalid conversion from ‘int’ to ‘void*’ [-fpermissive]", but
replacing it with e.g. printw everything works fine. So basically the code is:
#include <functional>
#include <curses.h>
//stuff
auto func = [](unsigned int v){if(v>12412) { color_set(4, 1); } }
Pretty strange. Why does this happen?
- Lambda-Expression and color_set,
kruse . matthis <=