Search:

Type: Posts; User: milli-961227

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,107

    Well explained, thanks!

    Well explained, thanks!
  2. Replies
    2
    Views
    1,107

    Implicit object conversion

    Hi folks,

    I've just figured out something interesting by accident. For demonstration purposes, let's assume we have two classes:


    class one {
    public:
    explicit operator bool() const...
  3. Replies
    6
    Views
    685

    Okay, I'll try to build the current development...

    Okay, I'll try to build the current development version of GCC the next few days and see if the problem is fixed, otherwise I'll have a look at bugzilla. Thanks for your efforts, they're very much...
  4. Replies
    6
    Views
    685

    Could that mean it is a compiler-specific issue?...

    Could that mean it is a compiler-specific issue? I've just tried out clang - the same code compiled and linked without complaints!



    $ g++ --version

    g++ (GCC) 5.2.0
    Copyright (C) 2015 Free...
  5. Replies
    6
    Views
    685

    Sorry, I just wanted to demonstrate what I want...

    Sorry, I just wanted to demonstrate what I want to do. Hope this helps:



    #include <cstddef>
    #include <string>


    struct base {
    base(std::string label) {}
  6. Replies
    6
    Views
    685

    Class member initialization

    Hi,

    I've just figured out something I find quite astonishing:



    struct base {
    base(std::string label);
    };
  7. Replies
    0
    Views
    1,246

    Using Gio::DBus for DBus programming

    Hi,

    I have a program that uses DBus (Linux) to connect to the interface `org.freedesktop.NetworkManager' in order to call its method `GetDevices'. This is needed for populating a list of network...
  8. Okay, thank you!

    Okay, thank you!
  9. Stream operator inconsistency between GCC and Clang

    Hey folks,

    just found out that stream operators are treated in a different way when using GCC or Clang as compilers. Until now, I always assumed that something like this was the way to go when...
  10. Ok I think I figured it out. The problem is the...

    Ok I think I figured it out. The problem is the initializer list of the vector, which can't move objects but only copy them. Therefore using the initializer list won't work for objects of type...
  11. Ok, I could also have used the code below but...

    Ok, I could also have used the code below but changing the context doesn't change the problem (I guess). The program still tries to call the deleted copy constructor:



    struct base {
    ...
  12. Vector of `std::unique_ptr' initialization

    Hi,



    struct base {
    virtual ~base()=default;
    };


    template<typename... Types>
  13. Replies
    6
    Views
    487

    Thank you very much

    Thank you very much
  14. Replies
    6
    Views
    487

    Thanks for your explanation, though I'm still...

    Thanks for your explanation, though I'm still unsure whether it's the correct approach for what I want. Maybe I should provide a bit more context:



    class subject;

    class layout; // mainly...
  15. Replies
    6
    Views
    487

    That's what I'm afraid of too... But wouldn't...

    That's what I'm afraid of too... But wouldn't this lead to double occurrence of the base `mask' in `description' in this case (the Diamond Problem)? So far I haven't been able to come up with a...
  16. Replies
    6
    Views
    487

    Design question

    Hey,

    just some code and the question whether this is bad design?



    class mask { // virtual interface
    public:
    virtual ~mask()=default;
    };
  17. Replies
    3
    Views
    595

    Hm, I guess you have a point... I'll consider to...

    Hm, I guess you have a point... I'll consider to slow down a little bit in the future, sorry :D

    By the way, for the ones interested in the problem: I managed to solve it. I'll post the code below...
  18. Replies
    3
    Views
    595

    Concept implementation

    Hey folks,

    I'm still playing around with template metaprogramming or more specifically with something that is being referred to as Concepts Lite.

    The goal is to have code such as shown below in...
  19. Well, I think I'll go this way since my...

    Well, I think I'll go this way since my `container.tcc' is already full of ugly definitions like this one:



    template<typename Type,
    template<typename...> typename Container, typename...
  20. Thank you Elysia, I haven't thought it was...

    Thank you Elysia, I haven't thought it was possible, but obviously I was wrong. It's always good to learn something new; I'll keep this in mind for the future.
  21. Hey, I'm not really an expert but have you...

    Hey,

    I'm not really an expert but have you considered the following:



    class test {
    class implementation;

    public:
  22. Undefined references with nested template member

    Hey,

    I'm currently working on a wrapper class for all types of containers that conform to the standard library concepts and already got some help on how to make functionality conditionally...
  23. Replies
    7
    Views
    646

    Ah, this makes sense I guess... And it also leads...

    Ah, this makes sense I guess... And it also leads to a much cleaner solution in my case:



    template<typename Type, template<typename...> typename Container>
    class container {
    public:
    ...
  24. Replies
    7
    Views
    646

    Thanks, that's the answer! I'll try it with...

    Thanks, that's the answer! I'll try it with something like that:

    c++ - void_t "can implement concepts"? - Stack Overflow
    Concept Checking in C++11 | Eric Niebler
  25. Replies
    388
    Views
    16,997

    Well, I for myself wouldn't rely on the fact that...

    Well, I for myself wouldn't rely on the fact that its currently working for you in this case. The problem begins when other people start making use of your code and get slained by thousands of errors...
Results 1 to 25 of 69
Page 1 of 3 1 2 3