Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

std::variant<Dublin, Jerusalem, Melbourne, Prague, Austin, ...>

93 views
Skip to first unread message

woodb...@gmail.com

unread,
Apr 4, 2017, 10:59:23 PM4/4/17
to
Has your user group lost some of its pizzazz? Are topics like
"Java" sometimes covered? I have an idea to help get things back
on track. I'll travel to your location at my own expense if you
would like to have me talk about the C++ Middleware Writer -- a
free on line code generator -- at your meeting. What I hope to
do is make it into a working vacation.

https://meetingcpp.com/index.php/newsreader/items/c-user-group-meetings-in-april-2017.html

I'm not sure if I'll do this more than one time. I'm willing
to travel overseas if that's where the interest is.


Brian
Ebenezer Enterprises - Enjoy programming again.
http://webEbenezer.net

woodb...@gmail.com

unread,
May 2, 2017, 10:45:33 PM5/2/17
to
On Tuesday, April 4, 2017 at 9:59:23 PM UTC-5, woodb...@gmail.com wrote:
> Has your user group lost some of its pizzazz? Are topics like
> "Java" sometimes covered? I have an idea to help get things back
> on track. I'll travel to your location at my own expense if you
> would like to have me talk about the C++ Middleware Writer -- a
> free on line code generator -- at your meeting. What I hope to
> do is make it into a working vacation.
>
> https://meetingcpp.com/index.php/newsreader/items/c-user-group-meetings-in-april-2017.html
>
> I'm not sure if I'll do this more than one time. I'm willing
> to travel overseas if that's where the interest is.
>


http://meetingcpp.com/index.php/newsreader/items/c-user-group-meetings-in-may-2017.html

That page says there's a new user group in Minneapolis. To the best of my knowledge
they haven't met yet and it doesn't look like they have a meeting planned yet.
I'm not sure how long it will take for them to get going, but in the meantime, I'm
happy to travel to your location.

Brian
Ebenezer Enterprises - "For G-d so loved the world that He gave His one and
only Son, that whoever believes in Him shall not perish but have eternal life." John 3:16

http://webEbenezer.net

Mr Flibble

unread,
May 3, 2017, 1:39:05 PM5/3/17
to
On 05/04/2017 03:59, woodb...@gmail.com wrote:

Subject: std::variant<Dublin, Jerusalem, Melbourne, Prague, Austin, ...>

Using a variant to hold different cities is egregious. All cities are of
the same type: "city".

This is similar to the common mistake of not preferring composition over
inheritance: it would also be wrong to have a "Dublin" class derived
from a "City" class.

/Flibble

woodb...@gmail.com

unread,
May 4, 2017, 1:51:22 PM5/4/17
to
On Wednesday, May 3, 2017 at 12:39:05 PM UTC-5, Mr Flibble wrote:
> On 05/04/2017 03:59, woodb...@gmail.com wrote:
>
> Subject: std::variant<Dublin, Jerusalem, Melbourne, Prague, Austin, ...>
>
> Using a variant to hold different cities is egregious. All cities are of
> the same type: "city".
>

This compiles:

#include <variant>

int main ()
{
::std::variant<int, int, int> v;
}

-------------------

The reason for using variant is to convey that I'm only planning to
give one talk where I travel to your location at my expense. Maybe
there will be more in the future, but I'm not planning on that at this time.


Brian
Ebenezer Enterprises - In G-d we trust.
http://webEbenezer.net

Mr Flibble

unread,
May 4, 2017, 5:22:32 PM5/4/17
to
On 04/05/2017 18:51, woodb...@gmail.com wrote:
> On Wednesday, May 3, 2017 at 12:39:05 PM UTC-5, Mr Flibble wrote:
>> On 05/04/2017 03:59, woodb...@gmail.com wrote:
>>
>> Subject: std::variant<Dublin, Jerusalem, Melbourne, Prague, Austin, ...>
>>
>> Using a variant to hold different cities is egregious. All cities are of
>> the same type: "city".
>>
>
> This compiles:

Just because code compiles it doesn't mean code is correct.

>
> #include <variant>
>
> int main ()
> {
> ::std::variant<int, int, int> v;
> }

You have obviously totally missed the point I was making.

[snip]

/Flibble

woodb...@gmail.com

unread,
Jun 2, 2017, 4:30:31 PM6/2/17
to
On Thursday, May 4, 2017 at 4:22:32 PM UTC-5, Mr Flibble wrote:
> On 04/05/2017 18:51, woodb...@gmail.com wrote:
> > On Wednesday, May 3, 2017 at 12:39:05 PM UTC-5, Mr Flibble wrote:
> >> On 05/04/2017 03:59, woodb...@gmail.com wrote:
> >>
> >> Subject: std::variant<Dublin, Jerusalem, Melbourne, Prague, Austin, ...>
> >>
> >> Using a variant to hold different cities is egregious. All cities are of
> >> the same type: "city".
> >>
> >
> > This compiles:
>
> Just because code compiles it doesn't mean code is correct.
>

Right.

I'm still available for this.


Brian
Ebenezer Enterprises - "The end of a matter is better than its beginning,
and patience is better than pride." Ecclesiastes 7:8

http://webEbenezer.net


0 new messages