Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #88450

Re: Bitset with data type based upon value ranges

From Muttley@dastardlyhq.com
Newsgroups comp.lang.c++
Subject Re: Bitset with data type based upon value ranges
Date 2023-01-09 09:18 +0000
Organization Aioe.org NNTP Server
Message-ID <tpgm5o$1frk$1@gioia.aioe.org> (permalink)
References <cbda91e9-0c7b-428e-a3fb-f930acc27627n@googlegroups.com> <8c2d02df-ff87-4fe2-ac76-d6103927d169n@googlegroups.com> <tpcllh$3jhcp$1@dont-email.me> <337270f4-10e8-428d-adb8-8d93d81d95dan@googlegroups.com>

Show all headers | View raw


On Sat, 7 Jan 2023 16:42:14 -0800 (PST)
Aaron Gray <aaronngray@gmail.com> wrote:
>On Saturday, 7 January 2023 at 20:45:54 UTC, Chris M. Thomasson wrote:
>> On 1/6/2023 5:48 PM, Aaron Gray wrote: 
>> > On Saturday, 7 January 2023 at 00:14:35 UTC, Aaron Gray wrote: 
>> >> Hi, 
>> >> I am looking for some template code to generate a type based upon a
>constant within value ranges, for specialization of a bitset class. 
>> >> 
>> >> 0...7 - unsigned char 
>> >> 8..15 - unsigned short 
>> >> 16...31 - unsigned int 
>> >> 32...63 - unsigned long 
>> >> 64...127 - unsigned long long 
>> >> 128... - unsigned long long [] - array 
>> >> 
>> >> ``` 
>> >> #include <cstddef> 
>> >> 
>> >> template <size_t BITS> 
>> >> class bitset { 
>> >> public: 
>> >> .... 
>> >> WORDTYPE data; 
>> >> .... 
>> >> }; 
>> >> ``` 
>> > 
>> > ChatGTP has given me the following :-
>> [...] 
>> 
>> Ouch. ChatGTP seems to train itself when somebody has to correct its 
>> generated code that it likely lifted from somebody else. Also, is the 
>> correction correct itself?
>
>Yep, big ouch, it stung me, and wasted time. 

What did you expect? ANNs are at their core simply statistical algorithms. 
You'd probably get a similar result with a hidden markov model if it was given 
enough input though admittedly it couldn't parse your question.

Back to comp.lang.c++ | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bitset with data type based upon value ranges Aaron Gray <aaronngray@gmail.com> - 2023-01-06 16:14 -0800
  Re: Bitset with data type based upon value ranges Aaron Gray <aaronngray@gmail.com> - 2023-01-06 17:48 -0800
    Re: Bitset with data type based upon value ranges "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2023-01-07 12:45 -0800
      Re: Bitset with data type based upon value ranges Aaron Gray <aaronngray@gmail.com> - 2023-01-07 16:42 -0800
        Re: Bitset with data type based upon value ranges Muttley@dastardlyhq.com - 2023-01-09 09:18 +0000
  Re: Bitset with data type based upon value ranges Muttley@dastardlyhq.com - 2023-01-07 11:19 +0000
    Re: Bitset with data type based upon value ranges Aaron Gray <aaronngray@gmail.com> - 2023-01-07 09:32 -0800
  Re: Bitset with data type based upon value ranges Öö Tiib <ootiib@hot.ee> - 2023-01-07 08:49 -0800
    Re: Bitset with data type based upon value ranges Aaron Gray <aaronngray@gmail.com> - 2023-01-07 09:30 -0800
      Re: Bitset with data type based upon value ranges Öö Tiib <ootiib@hot.ee> - 2023-01-07 10:09 -0800
        Re: Bitset with data type based upon value ranges Aaron Gray <aaronngray@gmail.com> - 2023-01-07 15:46 -0800

csiph-web