April 26th, 2010 01:39 PM
really need that, any tip is greatly appreciated
thanks!
April 25th, 2010 10:57 PM
could anyone tell me what function should I use for unix/linux?
April 25th, 2010 02:34 PM
Then what should i do for linux & windows cases?
April 25th, 2010 01:37 PM
Hi,
when using std::cin >> x; for getting a variable from user
the program is halted until the user inputs something. but
i want to have a time out (e.g. 10 seconds) which after
that the program...
April 19th, 2010 12:39 PM
Yes it compiles now!
Many thanks
I should go and learn some mpl!
April 19th, 2010 10:17 AM
excellent! I did not know we can do such thing with a few boost::mpl code!
I added the int main() below to the code and wanted to compile it but i get errors
int main(){
Stype::type ts1 =...
April 18th, 2010 11:07 PM
I think you are correct, map binary search is good, and I think it would be fastest if the series of
left/right comparisons become unrolled at compile time ( again metaprogram! )
in code it...
April 18th, 2010 03:10 PM
Thanks I did not know about Boost.Assignment
1- since the number of types T1,T2,... is limited (i'm sure it would be less than 10)
the map search algorithm becomes a little inefficient compared...
April 18th, 2010 01:49 PM
Hi, I have an enum in my program named Stype like below
enum Stype { T1, T2, T3 };
There is a template function compute which take two Stype as
template parameter
April 16th, 2010 06:50 AM
but it also works without setting the value of N like this
int main(){
int N;
int x[N];
}
April 16th, 2010 06:35 AM
Hi,
I am sure that the size of c style arrays must be known at compile tim
but the code below compiles. I am using g++ 4.2.4 and really confused!
int main(){
int N = 5;
int x[N];
x[2] = 3;...
March 16th, 2010 07:45 AM
March 16th, 2010 12:41 AM
Hi,
Can anybody help me why this code does not compile (gcc 4.2.4)
what does the error "invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<’" means?
...
January 7th, 2010 11:57 PM
Hello all,
I want to overload operator() of a class with a template function like below
//---------------------------
class A {
public:
template< int type >
void
operator()() {