User Profile
Collapse
-
ping works and tracert as well, so my ISP is not blocking anything (probably). Maybe it could somehow block the ip and port combination, but I don't know how to verify it. The tracert output at home and at college are the same except for the few routers at the beginning.... -
connect to internet via another PC hiding the real IP
Hi,
I have following problem: I play online games (Q3A), but I cannot connect to one particular server from my home PC. Disabling firewalls, antiviruses, etc. did not work, and the problem is present even on other two PCs at home which all share the same public IP (all are behind ADSL modem/router which has static public IP). Checking the game log doesn't help at all, IP is not banned, the server for some reason just doesn't respond.... -
No, it is not, because in my case, compiler deduces the type T from another object, which is determined only by single type T. For instance, I have std::vector<sho rt int> input_array and I want to create struct input_character istics, which will contain input_array sum of squares, average value etc., all of which should have types based on T (but are different). Passing two template arguments would allow me/user to define meaningless definitions...Leave a comment:
-
Templates conditional type
Hi,
can I define type of a variable based on some other type using templates? For example I have
template <typename T> struct A { T t; U x; };
and I want to define U, such that if T is char, then U will be int, if T is float, then U will be double etc. Is this possible via templates, or do I have to declare something like
struct A_char { char t; int x; };
struct A_float...
No activity results to display
Show More
Leave a comment: