Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

<lilo> Fairlight: udp is the light margarine of tcp/ip transport protocols :) -- Seen on #Linux


devel / comp.lang.c++ / VS2022 now possibly fit for purpose

SubjectAuthor
* VS2022 now possibly fit for purposeMr Flibble
`- Re: VS2022 now possibly fit for purposeChris M. Thomasson

1
VS2022 now possibly fit for purpose

<17605440b2f826c5$2$1196251$faa1aca7@news.newsdemon.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=172&group=comp.lang.c%2B%2B#172

  copy link   Newsgroups: comp.lang.c++
Date: Thu, 18 May 2023 20:41:36 +0100
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0
Newsgroups: comp.lang.c++
Content-Language: en-US
From: flibble2@reddwarf.jmc.corp (Mr Flibble)
Subject: VS2022 now possibly fit for purpose
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 73
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!feeder1.feed.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.newsdemon.com!not-for-mail
Nntp-Posting-Date: Thu, 18 May 2023 19:41:37 +0000
Organization: NewsDemon - www.newsdemon.com
X-Complaints-To: abuse@newsdemon.com
Message-Id: <17605440b2f826c5$2$1196251$faa1aca7@news.newsdemon.com>
X-Received-Bytes: 2777
 by: Mr Flibble - Thu, 18 May 2023 19:41 UTC

Hi!

Microsoft have finally shipped (17.7.0 Preview 1.0) a fix for a bug I
reported in back in March (which was a duplicate of a similar bug
reported in December) --
https://developercommunity.visualstudio.com/t/Problem-with-constexpr-and-accessing-non/10307212https://developercommunity.visualstudio.com/t/Problem-with-constexpr-and-accessing-non/10307212

Namely, the well-formed C++ below now compiles.

I wonder if Bonita Montero will now apologize for being a wrong, obtuse
Muppet.

/Flibble

#include <type_traits>
#include <memory>
#include <iostream>

namespace detail
{ template<typename T> struct is_smart_ptr : std::false_type {};
template<typename T> struct is_smart_ptr<std::shared_ptr<T>> :
std::true_type {};
template<typename T> struct is_smart_ptr<std::unique_ptr<T>> :
std::true_type {};
template<typename T>
inline constexpr bool is_smart_ptr_v = is_smart_ptr<T>::value;
}

template <typename T>
struct jar
{ typedef T value_type;

template <typename... Args>
void add(Args&&... aArgs)
{
if constexpr (!detail::is_smart_ptr_v<value_type>)
std::cout << "a";
else if constexpr (detail::is_smart_ptr_v<value_type> &&
std::is_abstract_v<typename value_type::element_type>)
std::cout << "b";
}
};

struct foo
{ };

int main()
{ jar<foo> j;
j.add(42);
return 0;
}

------

Build started...
1>------ Build started: Project: ConsoleApplication1, Configuration:
Debug x64 ------
1>Scanning sources for module dependencies...
1>std.ixx
1>std.compat.ixx
1>Compiling...
1>std.ixx
1>std.compat.ixx
1>ConsoleApplication1.cpp
1>ConsoleApplication1.vcxproj ->
C:\Users\leigh\source\repos\ConsoleApplication1\x64\Debug\ConsoleApplication1.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Build started at 8:35 PM and took 17.065 seconds ==========

Re: VS2022 now possibly fit for purpose

<u45vhd$c0mv$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=173&group=comp.lang.c%2B%2B#173

  copy link   Newsgroups: comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m.thomasson.1@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++
Subject: Re: VS2022 now possibly fit for purpose
Date: Thu, 18 May 2023 12:50:06 -0700
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <u45vhd$c0mv$1@dont-email.me>
References: <17605440b2f826c5$2$1196251$faa1aca7@news.newsdemon.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 18 May 2023 19:50:06 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="19100c6aaa1f5c0d7af75a27f3dc718e";
logging-data="393951"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tuJDiOesT+ImyeIyOG6H1LEGB3lrHebo="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:04FAVbHqMK/yokLsf4il2bt8aDw=
In-Reply-To: <17605440b2f826c5$2$1196251$faa1aca7@news.newsdemon.com>
Content-Language: en-US
 by: Chris M. Thomasson - Thu, 18 May 2023 19:50 UTC

On 5/18/2023 12:41 PM, Mr Flibble wrote:
> Hi!
>
> Microsoft have finally shipped (17.7.0 Preview 1.0) a fix for a bug I
> reported in back in March (which was a duplicate of a similar bug
> reported in December) --
> https://developercommunity.visualstudio.com/t/Problem-with-constexpr-and-accessing-non/10307212https://developercommunity.visualstudio.com/t/Problem-with-constexpr-and-accessing-non/10307212
>
> Namely, the well-formed C++ below now compiles.
>
> I wonder if Bonita Montero will now apologize for being a wrong, obtuse
> Muppet.
[...]
> Build started...
> 1>------ Build started: Project: ConsoleApplication1, Configuration:
> Debug x64 ------
> 1>Scanning sources for module dependencies...
> 1>std.ixx
> 1>std.compat.ixx
> 1>Compiling...
> 1>std.ixx
> 1>std.compat.ixx
> 1>ConsoleApplication1.cpp
> 1>ConsoleApplication1.vcxproj ->
> C:\Users\leigh\source\repos\ConsoleApplication1\x64\Debug\ConsoleApplication1.exe
> ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
> ========== Build started at 8:35 PM and took 17.065 seconds ==========
>

Nice!

https://developercommunity.visualstudio.com/t/if-constexpr-compiler-bug-regression-/10235474

Well, shit I have:

https://i.ibb.co/J33b7fp/image.png

installed.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor