Hi,
I would like to share my progress on the competency project made
recently. I managed to implement:
constexpr std::pair
Hi,
I'm Zheng Luo, a third-year undergraduate from Shanghai Jiaotong University who have special interest in C++ programming(especially for templates). This is my second year of applying Google Summer of Code and I'm willing to contribute to Static Map project mentioned on SoC2017 page. Previously I worked for a company as a C++ intern for months on Chromium-related projects where I gained some experience about C++ in industry.
And my question is, am I allowed to implement the competency test of static_map in g++-7? I have just implemented my own version of static_map which supports the following operations:
constexpr StaticMap
m(make_pair(2, "abc"), make_pair(4, "def"), make_pair(6, "ghi")); if (!m[4]) abort(); const char *foo = m[2]; return 0;
which is compiled into assembly as:
main: xorl %eax, %eax ret
under g++-7 with -std=c++1z -O3
So I was wondering did I pass the test?
Thanks,
-- --------------------------------- Vic Luo Shanghai Jiaotong University Key fingerprint 0x98809ca08bf5662a