boostorg / core

Boost Core Utilities
132 stars 87 forks source link

Added implicit cast to core library : issue #49 #71

Closed anshu-khare-design closed 4 years ago

anshu-khare-design commented 4 years ago

I have worked on issue #49 of core library.

mloskot commented 4 years ago

WTF 😨 Mate, leave boostorg/core alone, please!

anshu-khare-design commented 4 years ago

Implicit_cast typically means that we are able to convert one datatype to another. If this is wrong, could you please link me to relevant sources?

mloskot commented 4 years ago

If this is wrong, could you please link me to relevant sources?

Mind you you have been already told: https://lists.boost.org/Archives/boost/2020/01/247987.php

The relevant place to look is the implicit_cast.cpp file you added to the library in this PR. Look at it again and review what you have added, what it is, if/how it integrates with the library.

To me, this is a useless file .cpp file, a randomly dropped in rubbish.

Answering those initial questions should already tell you it is a good idea to close this PR and forget, so I should not even make comments about quality of the code you submitted:

If you really really really die hard to contribute to boostorg/core, then really really really try hard and spend time getting familiar with the current contents of the library, learn how it is structured, integrated, built (or perhaps it is not built, hint!), etc.

Again, you have been already given plenty of guidelines https://lists.boost.org/Archives/boost/2020/01/247987.php or even more https://lists.boost.org/Archives/boost/2020/01/248004.php. Hint: the last one is golden!

glenfe commented 4 years ago

Everything about this is wrong.

For your edification only, this is the implementation of implicit_cast:

template<class T>
BOOST_CONSTEXPR inline T implicit_cast(typename type_identity<T>::type v)
{
    return v;
}

We do not want to address #49, so I'm closing this PR.

mloskot commented 4 years ago

@glenfe Shall the #49 be closed as well?