Search:

Type: Posts; User: manasij7479

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    7
    Views
    481

    The initializers go before the constructor body,...

    The initializers go before the constructor body, not inside.
  2. Essentially what you can do is: // Define...

    Essentially what you can do is:


    // Define is_containter<T> with SFINAE/void_t/magic

    template<typename T>
    void foo(T t) {
    static_assert(is_container<T>::value, "requires is_container");
    ...
  3. Look up void_t. The error messages will be...

    Look up void_t.
    The error messages will be tricky if something goes wrong, but you can emulate concepts pretty well.
    std::void_t - cppreference.com
  4. Writing a simple interpreter can be a lot of fun....

    Writing a simple interpreter can be a lot of fun.
    Start with a calculator that does arithmetic.


    (+ 2 3)

    Add variables


    (let (a 5) (+ a 5))
  5. Wrap case 2 in a block. case 2 : { char...

    Wrap case 2 in a block.


    case 2 : {
    char timerX[10] = "600x400";
    //...
    }
    break;

    Or put timerX outside the switch.
  6. Ah, you could probably write a book on this!

    Ah, you could probably write a book on this!
  7. Replies
    18
    Views
    4,050

    Unless you really want the 'embedded' part, you...

    Unless you really want the 'embedded' part, you could write a simple recursive descent parser with much less headache!
    Also, the last time I tried Spirit was a few years ago. Is it still *really*...
  8. Replies
    1
    Views
    599

    What are you trying to do/find? Also, it is by...

    What are you trying to do/find?
    Also, it is by ideology not meant to be indexed, so it is not surprising that you can not find anything.

    Also, there is very little in the accessible 'deep web'...
  9. Replies
    26
    Views
    1,942

    There is some speculation that the dock will have...

    There is some speculation that the dock will have a nice cooling system.
    That might allow the hardware to clock up with docked.

    When used standalone, a reasonable ARM soc is good enough for the...
  10. Replies
    21
    Views
    2,210

    Windows 95, 98 (Remember seeing in primary...

    Windows 95, 98 (Remember seeing in primary school.)
    Windows XP (First home computer came with it)

    Ubuntu 8.04 (Got the CD from a magazine!)
    Fedora 11 (Took a few days to download..)

    Ubuntu ||...
  11. Replies
    2
    Views
    1,415

    From the article: It is interesting that this...

    From the article:

    It is interesting that this ('when the list is long enough') doesn't slow everything down.
  12. Replies
    25
    Views
    2,053

    True. I guess that has stopped bothering me when...

    True.
    I guess that has stopped bothering me when writing C++!
    In this case, there is a lot of horrible messages and a single reasonable one.


    ...
    note: candidate constructor not...
  13. Replies
    25
    Views
    2,053

    Here is a solution without using static_assert or...

    Here is a solution without using static_assert or specializations :



    #include <vector>
    #include <deque>
    #include <list>
    #include <string>
    #include <iostream>
  14. Thread: Deadlines

    by manasij7479
    Replies
    39
    Views
    4,180

    It is also, to some extent an anti-piracy...

    It is also, to some extent an anti-piracy measure.
    As always, it inconveniences legitimate users more than the 'pirates'.
  15. Replies
    3
    Views
    846

    C++ Tutorial - Learn C++ - Cprogramming.com...

    C++ Tutorial - Learn C++ - Cprogramming.com
    C++ Language - C++ Tutorials
  16. Replies
    12
    Views
    1,098

    This is fine as long as you are storing things as...

    This is fine as long as you are storing things as simple as integers.
    It will create tricky problems when the objects need cleanup (i.e. destructors need to be called.)
    That is why std::vector's...
  17. It looks a little bit ugly in C++ and you end up...

    It looks a little bit ugly in C++ and you end up writing a lot of code for nothing.
    (Also, without lazy evaluation, a lot of the interesting idioms do not translate properly.)

    Consider a...
  18. Replies
    7
    Views
    1,096

    Use the extra 200$ to double the RAM or get an...

    Use the extra 200$ to double the RAM or get an SSD if you don't have one.
    That is going to be a noticeable improvement.
  19. How many other languages have you worked with as...

    How many other languages have you worked with as much as C++ ?
  20. Replies
    52
    Views
    4,964

    By that logic JavaScript models the ecosystem...

    By that logic JavaScript models the ecosystem available in a current web browser rather well.
  21. Same result with clang. You can put more dots...

    Same result with clang.
    You can put more dots there without any change!


    3.14_FOO.....Bar()


    I think it is a bug, the literal is supposed to be an identifier or a string literal itself,...
  22. Replies
    3
    Views
    934

    Yes. In general, a[x] is same as *(a + x)

    Yes.
    In general,
    a[x] is same as *(a + x)
  23. Replies
    52
    Views
    4,964

    I like the language, but debugging can be...

    I like the language, but debugging can be frustrating.
    Especially when your code is N levels deep in callbacks, which seems to be a very common style.
    I really should invest time learning how to...
  24. Replies
    3
    Views
    1,436

    You are right, in the sense that the person...

    You are right, in the sense that the person handling the input decides whether your program halts.
    If you do not want that, do something like:


    int n = 10;
    while ((std::cin >> x) && n--) {
    ...
  25. Replies
    27
    Views
    2,542

    I have wanted to something like this for a long...

    I have wanted to something like this for a long time!
    If you decide to make it open source, I would be interested in brainstorming and helping out with the C++ part!
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4