Search:

Type: Posts; User: manasij7479

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Thread: sizeof()

    by manasij7479
    Replies
    7
    Views
    443

    The compiler has it saved internally. Here is...

    The compiler has it saved internally.
    Here is one example: clang/TargetInfo.h at master * llvm-mirror/clang * GitHub


    Why do you want to do this?
  2. Awesome, so far!

    Awesome, so far!
  3. This is the year of the li̶n̶u̶x̶ ̶d̶e̶s̶k̶t̶o̶p̶...

    This is the year of the li̶n̶u̶x̶ ̶d̶e̶s̶k̶t̶o̶p̶ JVM.
  4. Replies
    2
    Views
    338

    Time flies! I have fond memories of this...

    Time flies!
    I have fond memories of this forum, and have learnt a lot from the folks here.
    Still writing C++ ... and C++ compilers!
  5. Replies
    7
    Views
    527

    The initializers go before the constructor body,...

    The initializers go before the constructor body, not inside.
  6. 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");
    ...
  7. 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
  8. 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))
  9. 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.
  10. Ah, you could probably write a book on this!

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

    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*...
  12. Replies
    1
    Views
    641

    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'...
  13. Replies
    26
    Views
    2,041

    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...
  14. Replies
    21
    Views
    2,302

    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 ||...
  15. Replies
    2
    Views
    1,477

    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.
  16. Replies
    25
    Views
    2,104

    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...
  17. Replies
    25
    Views
    2,104

    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>
  18. Thread: Deadlines

    by manasij7479
    Replies
    39
    Views
    4,352

    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'.
  19. Replies
    3
    Views
    877

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

    C++ Tutorial - Learn C++ - Cprogramming.com
    C++ Language - C++ Tutorials
  20. Replies
    12
    Views
    1,106

    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...
  21. 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...
  22. Replies
    7
    Views
    1,137

    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.
  23. How many other languages have you worked with as...

    How many other languages have you worked with as much as C++ ?
  24. Replies
    52
    Views
    5,219

    By that logic JavaScript models the ecosystem...

    By that logic JavaScript models the ecosystem available in a current web browser rather well.
  25. 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,...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4