Re: It's a disappointment

13 views
Skip to first unread message

Matt Godbolt

unread,
Mar 13, 2021, 9:28:46 AM3/13/21
to Peter Ketel, compiler-explo...@googlegroups.com
Hi Mr Ketel,

Do you have an issue specific to Compiler Explorer? If it's not compiling something you would expect, can you share the link with us, and we can help: to do so click the top right Share icon and copy the short link you get.

Thanks, Matt

On Sat, Mar 13, 2021, 08:04 Peter Ketel <ketel...@gmail.com> wrote:

Dear Mr. Godbolt,

De reason for visiting your site was to try experiment with certain ideas. So lets try this:

    int i = 33;
    decltype(i) j = i * 2;
 
    std::cout << "i and j are the same type? " << std::boolalpha
              << std::is_same_v<decltype(i), decltype(j)> << '\n';

It will not do anything except for failing to compile. Dropping the is_same_v for is_same will not help. However g++ v10 on my Linux will compile this without a problem

Lets try the example from the CPP with ranges. Nope that will not work. 

And so on on… I gave up.

Kind regards
Peter Ketel


Reply all
Reply to author
Forward
0 new messages