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


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

Re: How to concat two constexpr c-string?

From Bonita Montero <Bonita.Montero@gmail.com>
Newsgroups comp.lang.c++
Subject Re: How to concat two constexpr c-string?
Date 2023-08-26 15:57 +0200
Organization A noiseless patient Spider
Message-ID <ucd0bb$jjoa$1@dont-email.me> (permalink)
References <2eea619a-b7f4-4df1-9bdc-6b2582c03991n@googlegroups.com> <610a03f1-1ff9-4ef9-b2c5-8634f6cec8d3n@googlegroups.com> <0017fc73-4f9e-4a00-988a-939aac029d13n@googlegroups.com> <uccu9l$jalu$1@dont-email.me> <ae926eba-05a7-45a8-9c4a-95738bd731a9n@googlegroups.com>

Show all headers | View raw


Am 26.08.2023 um 15:33 schrieb wij:

> 1. I am not familiar with "constexpr"

There are three constexprs:
3. If you declare a function constexpr the compiler is requested
to compile-time evaluate the function if possible. If you have a
dynamic memory allocation that couldn't be compile-time evaluateable.
1. If you declare a variable constexpr the value assigned to it must
be compile-time evaluateable. Functions used to initialize the variable
must be constexpr and actually compile-time evaluatable.
2. If you have an if constexpr( expr ) expr must be compile-time
evaluateable. Functions called by expr must be also compie-time
evaluateable like with 2.

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


Thread

How to concat two constexpr c-string? wij <wyniijj5@gmail.com> - 2023-08-26 03:01 -0700
  Re: How to concat two constexpr c-string? Öö Tiib <ootiib@hot.ee> - 2023-08-26 03:44 -0700
    Re: How to concat two constexpr c-string? wij <wyniijj5@gmail.com> - 2023-08-26 06:17 -0700
      Re: How to concat two constexpr c-string? Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-26 15:22 +0200
        Re: How to concat two constexpr c-string? wij <wyniijj5@gmail.com> - 2023-08-26 06:33 -0700
          Re: How to concat two constexpr c-string? Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-26 15:57 +0200
    Re: How to concat two constexpr c-string? JiiPee <kerrttuPoistaTama11@gmail.com> - 2023-09-24 11:48 +0300
      Re: How to concat two constexpr c-string? David Brown <david.brown@hesbynett.no> - 2023-09-24 11:55 +0200
  Re: How to concat two constexpr c-string? Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-26 12:51 +0200
    Re: How to concat two constexpr c-string? Bonita Montero <Bonita.Montero@gmail.com> - 2023-08-26 13:15 +0200
    Re: How to concat two constexpr c-string? JiiPee <kerrttuPoistaTama11@gmail.com> - 2023-09-24 11:54 +0300
  Re: How to concat two constexpr c-string? "Alf P. Steinbach" <alf.p.steinbach@gmail.com> - 2023-08-26 22:04 +0200
    Re: How to concat two constexpr c-string? JiiPee <kerrttuPoistaTama11@gmail.com> - 2023-09-24 11:55 +0300
      Re: How to concat two constexpr c-string? "Alf P. Steinbach" <alf.p.steinbach@gmail.com> - 2023-09-25 00:08 +0200

csiph-web