Comments (7)
we merge issues #16 , #17 and #18 to the
https://github.com/aregtech/areg-sdk/tree/20220206-stl17-migration
from areg-sdk.
Sorry to say it is still far away from completion, there are lot of things to be done since String is used heavily in the library core
from areg-sdk.
Good day, @biwiki.
Can you please inform whether this ticket is completed or there are still things to do?
I am completing the other container migration an would like to start preparing merging with master.
Thank you!
from areg-sdk.
Hi @biwiki . Thank you for your reply. It's OK, i just wanted to know whether i need to refactor String class or not. On the first step, i'll refactor class String
, on second step String
with std::string
(you were replacing, right?).
from areg-sdk.
I think I chose to follow the other direction by replacing String with std::string, and deprecating String at the end. And I had also been using other C++17 features along the way, so perhaps it might not be good to merge to master
from areg-sdk.
At the begin I also tried to do so for containers. For example, tried completely replace TEArrayList
with std::vector
. It took me very long time and at the end end-up with some mess 😁 There were several problems that needed to fix in parallel. Then i decided to overwrite TEArrayList
to keep API maximum close. It worked much better. Did same with other containers. After this refactoring, i have compatibility of containers, but not really the API:
TEArrayList
-->std::vector
TEHashMap
-->std::unordered_map
TEStack
-->std::deque
TELinkedList
-->std::list
Changes are in 20220528-adapt-stl
Same I'll do with the String
. Then I'll try wherever is possible to use STL objects.
As always, your suggestions / comments are welcomed
from areg-sdk.
Instead of replacing String
or const char *
with std::string
, implemented String
as a wrapper of std::string
.
All fixes are in 20220701-candidate.
Closing the ticket as fixed.
from areg-sdk.
Related Issues (20)
- Logobserver does not reconnect to the log service
- Assertion in example 17
- Wrong cursor position in logger
- Status message in logobserver
- Log observer commands
- Integrate SQLite embedded database
- SQLite database in extended feature
- Fix CodeQL analytics warning
- Log messages in the SQLite database
- Test log observer
- Failed create new entry on reconnect to logger
- logger and mcrouter as system service
- DateTime mismatch in Windows and Linux
- Separate copy script for Linux and Windows
- Clean warnings in workflow actions
- Merge unit test executables
- Access mcrouter and logger services from WSL
- Service Interface XSD
- Service process common object
- Update Readme.md
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from areg-sdk.