JohelEGP / proposals

My papers for JTC1/SC22/WG21.
The Unlicense
0 stars 0 forks source link

Maybe the concepts library should exist on its own? #3

Open mpusz opened 11 months ago

mpusz commented 11 months ago

I think there are many benefits to making the concepts library a separate product from mp-units:

  1. You use a standard_case for concepts, which is inconsistent with the mp-units practices 😜
  2. It is your independent hard work, so having this in a separate repository would increase your visibility
  3. It would be easier for other libraries (safe numerics, linear algebra, ...) to reuse those concepts and provide feedback if it is not embedded as a part of mp-units.

The above of course assumes that the library would be available in the Complier Explorer (single header libraries don't need any special support) and Conan.

JohelEGP commented 11 months ago

You're absolutely right. Resistance is futile. CAUTION Programming is addictive (and too much fun) I'm looking forward to resolving this issue.

mpusz commented 11 months ago

I just realized that a dedicated support in the CE is also needed as mp-units will not include the header with full URL

JohelEGP commented 11 months ago

I don't understand that. WDYM?

mpusz commented 11 months ago

I mean that the Compiler Explorer will also need your library in a dropdown list of supported libraries (even it is a single header one).

Ingle header works nicely when you type an example in the CE and provide the entire URL to the #include <URL>. However, if your header would be transitively included by the mp-units or another project, CE will not find it if it is not in the database, and is not specified in the CE configuration as a dependency on mp-units.